slideout real floating panels on startup if needed

--after view startup real floating panels that are hiding
their thickness because of maximized windows must reposition
themeselves in order to have a valid visual state
pull/19/head
Michail Vourlakos 5 years ago
parent 11d5429a10
commit 95cd703333

@ -1055,15 +1055,29 @@ Item{
}
if (root.behaveAsPlasmaPanel && !latteView.visibility.isHidden && !inSlidingIn && !inSlidingOut && !inStartup) {
if (hideThickScreenGap) {
slidingInRealFloating.stop();
slidingOutRealFloating.start();
} else {
slidingOutRealFloating.stop();
slidingInRealFloating.start();
slideInOutRealFloating();
}
}
onInStartupChanged: {
//! used for positioning properly real floating panels when there is a maximized window
if (root.hideThickScreenGap && !inStartup && latteView.positioner.slideOffset===0) {
if (root.behaveAsPlasmaPanel && !latteView.visibility.isHidden) {
slideInOutRealFloating();
}
}
}
function slideInOutRealFloating() {
if (root.hideThickScreenGap) {
slidingInRealFloating.stop();
slidingOutRealFloating.start();
} else {
slidingOutRealFloating.stop();
slidingInRealFloating.start();
}
}
}
}

Loading…
Cancel
Save