fix: prevent deform gap between bar and popouts
This commit is contained in:
parent
ff5c46a429
commit
b1380235eb
1 changed files with 12 additions and 2 deletions
|
|
@ -211,10 +211,20 @@ StyledWindow {
|
|||
PanelBg {
|
||||
id: popoutBg
|
||||
|
||||
// Extra width to prevent vertical movement deformation partially detaching panel from bar
|
||||
property real extraWidth: panels.popouts.isDetached ? 0 : 0.2
|
||||
|
||||
panel: panels.popoutsWrapper
|
||||
deformAmount: panels.popouts.isDetached ? 0.05 : panels.popouts.hasCurrent ? 0.15 : 0.1
|
||||
x: panels.popoutsWrapper.x + panels.popouts.x + bar.implicitWidth
|
||||
implicitWidth: panels.popouts.width
|
||||
x: panels.popoutsWrapper.x + panels.popouts.x + bar.implicitWidth - panels.popouts.width * extraWidth
|
||||
implicitWidth: panels.popouts.width * (1 + extraWidth)
|
||||
|
||||
Behavior on extraWidth {
|
||||
Anim {
|
||||
duration: Appearance.anim.durations.expressiveDefaultSpatial
|
||||
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue