Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❄️: wrap fast load toggle in separate container to fix alignment #1689

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions lively.freezer/src/landing-page.cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class WorldAligningLandigPageUIElements extends ViewModel {
$world._cachedWindowBounds = null;
document.body.style.overflowY = 'hidden';
this.ui.topSide.topRight = $world.visibleBounds().insetBy(10).topRight();
this.ui.fastLoadToggler.bottomRight = $world.visibleBounds().insetBy(10).bottomRight();
this.ui.fastLoadTogglerWrapper.bottomRight = $world.visibleBounds().bottomRight();
return this.view;
}
}
Expand Down Expand Up @@ -349,9 +349,21 @@ const LandingPageUI = component(
}]
})]
},
part(FastLoadToggler, {
name: 'fast load toggler'
})
{
name: 'fast load toggler wrapper',
layout: new TilingLayout({
align: 'right',
axisAlign: 'right',
padding: rect(0, 0, 10, 10)
}),
position: pt(216.8, 80.2),
extent: pt(100, 100),
fill: Color.transparent,
reactsToPointer: false,
submorphs: [part(FastLoadToggler, {
name: 'fast load toggler'
})]
}
]
});

Expand Down
Loading