diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f2998d784fc2766f2821db7d6b3453bdab65b5b..7e5f9bc5069850f5918d16e8218215f2013ef65f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# 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_ diff --git a/app/package.json b/app/package.json index 58423f42cef007ed41c90bad9c087a3df1fb6cb0..9ad7f0c932fe64b6b475a5eb5955e490723e393a 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "nodenogg.in", - "version": "0.1.42", + "version": "0.1.43", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/app/src/components/NodesLayer.vue b/app/src/components/NodesLayer.vue index acdfb8665cd90b69544e15de097684a83badffc3..ff13bf6ee5a2304c756174991f1e9a55fbf1999b 100644 --- a/app/src/components/NodesLayer.vue +++ b/app/src/components/NodesLayer.vue @@ -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