File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ PanelWindow {
118118 anchors .fill : parent
119119 color: palette .active .window
120120 border .color : root .failed ? " #b53030" : palette .active .accent
121+ border .width : 1
121122
122123 radius: 10
123124 margin: 10
Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ Rectangle {
5858 // / See @@WrapperManager.child for details.
5959 property alias child: manager .child
6060
61+ // Reading the border property implicitly sets border width to 1.
62+ // Setting it to 0 here means the user will also have to set border.width
63+ // even if they just want 1, but it prevents adding unexpected padding
64+ // and works around QTBUG-137166 otherwise.
65+ border .width : 0
66+
6167 MarginWrapperManager {
6268 id: manager
6369 extraMargin: (root .contentInsideBorder ? root .border .width : 0 ) + root .extraMargin
You can’t perform that action at this time.
0 commit comments