aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-07 20:22:28 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-07 20:22:28 +1000
commit4209790a0c1737bc9cbf7df2bdcedc541b715dad (patch)
treefedca423acb77322e73499a202e6f5d050d410be /src
parent9c3fa60551eac1a35877dc159ebeb31f858de0ca (diff)
Fix corner-squished retained-overflow on resize-to-larger
Diffstat (limited to 'src')
-rw-r--r--src/App.vue17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/App.vue b/src/App.vue
index f8c986e..1c4b74b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -977,18 +977,15 @@ export default defineComponent({
},
// For relayout
relayoutWithCollapse(secondPass = true): boolean {
- let success;
if (this.overflownRoot){
- success = tryLayout(this.activeRoot, this.tileAreaDims,
- {...this.lytOpts, layoutType: 'sqr-overflow'}, {allowCollapse: false, layoutMap: this.layoutMap});
- } else {
+ this.overflownRoot = false;
+ }
+ let success = tryLayout(this.activeRoot, this.tileAreaDims, this.lytOpts,
+ {allowCollapse: true, layoutMap: this.layoutMap});
+ if (secondPass){
+ // Relayout again, which can help allocate remaining tiles 'evenly'
success = tryLayout(this.activeRoot, this.tileAreaDims, this.lytOpts,
- {allowCollapse: true, layoutMap: this.layoutMap});
- if (secondPass){
- // Relayout again, which can help allocate remaining tiles 'evenly'
- success = tryLayout(this.activeRoot, this.tileAreaDims, this.lytOpts,
- {allowCollapse: false, layoutMap: this.layoutMap});
- }
+ {allowCollapse: false, layoutMap: this.layoutMap});
}
return success;
},