Align panel underlines with native bar icons
This commit is contained in:
1 parent
d21e5810b1
commit
6809987892
1 file changed
+3
-2
@@ -1886,11 +1886,12 @@ Item {
|
|||||||
// desktop — so it underlines a top bar, overlines a bottom one, and
|
// desktop — so it underlines a top bar, overlines a bottom one, and
|
||||||
// points inward from a left or right one. It reads as pointing at the
|
// points inward from a left or right one. It reads as pointing at the
|
||||||
// panel that opens on that side.
|
// panel that opens on that side.
|
||||||
|
// Snap toward the start of the slot, matching native glyph rendering.
|
||||||
x: root.vertical
|
x: root.vertical
|
||||||
? (root.position === "left" ? parent.width - width - inset : inset)
|
? (root.position === "left" ? parent.width - width - inset : inset)
|
||||||
: Math.round((parent.width - width) / 2)
|
: Math.floor((parent.width - width) / 2)
|
||||||
y: root.vertical
|
y: root.vertical
|
||||||
? Math.round((parent.height - height) / 2)
|
? Math.floor((parent.height - height) / 2)
|
||||||
: (root.position === "top" ? parent.height - height - inset : inset)
|
: (root.position === "top" ? parent.height - height - inset : inset)
|
||||||
z: 50
|
z: 50
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user