Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nodenogg-duplicate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam Procter
nodenogg-duplicate
Commits
08e68da5
Commit
08e68da5
authored
4 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
resize height of node to fill content version 1
parent
32897022
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+8
-0
8 additions, 0 deletions
CHANGELOG.md
app/package.json
+1
-1
1 addition, 1 deletion
app/package.json
app/src/components/NodesLayer.vue
+10
-2
10 additions, 2 deletions
app/src/components/NodesLayer.vue
with
19 additions
and
3 deletions
CHANGELOG.md
+
8
−
0
View file @
08e68da5
# 0.1.43
_12th December 2020_
## Fixed
-
Partial fix so that nodes will resize to fit content (after dragging into position)
# 0.1.42
_11th December 2020_
...
...
This diff is collapsed.
Click to expand it.
app/package.json
+
1
−
1
View file @
08e68da5
{
"name"
:
"nodenogg.in"
,
"version"
:
"0.1.4
2
"
,
"version"
:
"0.1.4
3
"
,
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
...
...
This diff is collapsed.
Click to expand it.
app/src/components/NodesLayer.vue
+
10
−
2
View file @
08e68da5
...
...
@@ -342,9 +342,12 @@ export default {
this
.
height
=
height
},
onResizestop
(
x
,
y
,
width
,
height
)
{
// var nodecontentHeight = document.getElementById(this.nodeid).clientHeight
var
localnodeid
=
this
.
nodeid
var
zindex
var
i
for
(
i
=
0
;
i
<
Object
.
keys
(
this
.
configPositions
).
length
;
i
++
)
{
if
(
this
.
configPositions
[
i
].
node_id
==
this
.
nodeid
)
{
this
.
width
=
this
.
configPositions
[
i
].
width
...
...
@@ -354,6 +357,11 @@ export default {
}
this
.
width
=
width
this
.
height
=
height
// if (nodecontentHeight > this.height) {
// height = nodecontentHeight + 150
// }
this
.
$store
.
dispatch
(
'
movePos
'
,
{
localnodeid
,
x
,
...
...
@@ -375,11 +383,11 @@ export default {
width
=
this
.
width
height
=
this
.
height
var
i
// FIXME: What is this for loop doing ??
if
(
nodecontentHeight
>
this
.
height
)
{
this
.
height
=
nodecontentHeight
+
150
}
// FIXME: What is this for loop doing ??
for
(
i
=
0
;
i
<
Object
.
keys
(
this
.
configPositions
).
length
;
i
++
)
{
if
(
this
.
configPositions
[
i
].
node_id
==
this
.
nodeid
)
{
this
.
localx
=
this
.
configPositions
[
i
].
x_pos
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment