aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-15 01:26:23 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-15 01:26:23 +1100
commitd5bb1a59ad603cecb55936dd521362f8f4400376 (patch)
treec3ca33d31d9cd629623aa4fac513c7a7ab1e49fd /src/components
parent91fc28593d82ee428d740d2a263b8ec7749894f4 (diff)
Make layout funcs return node with best-fit dims, remove usedDims
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Tile.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index 5869b6c..475449c 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -67,8 +67,8 @@ export default defineComponent({
<div v-if="layoutNode.sepSweptArea"
:style="{position: 'absolute',
left: layoutNode.sepSweptArea.pos[0]+'px', top: layoutNode.sepSweptArea.pos[1]+'px',
- width: (layoutNode.sepSweptArea.dims[0]+(layoutNode.sepSweptArea.sweptLeft ? tileSpacing+1 : 0))+'px',
- height: (layoutNode.sepSweptArea.dims[1]+(layoutNode.sepSweptArea.sweptLeft ? 0 : tileSpacing+1))+'px',
+ width: (layoutNode.sepSweptArea.dims[0]+(layoutNode.sepSweptArea.sweptLeft ? 1 : 0))+'px',
+ height: (layoutNode.sepSweptArea.dims[1]+(layoutNode.sepSweptArea.sweptLeft ? 0 : 1))+'px',
borderRightColor: (layoutNode.sepSweptArea.sweptLeft ? 'white' : 'currentColor'),
borderBottomColor: (layoutNode.sepSweptArea.sweptLeft ? 'currentColor' : 'white'),
transitionDuration: transitionDuration+'ms'}"