fix(window-title): use named property instead of read-only implicitWidth
This commit is contained in:
parent
d9101c2415
commit
ce14a170a5
2 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ PanelWindow {
|
|||
M.WindowTitle {
|
||||
id: _windowTitle
|
||||
readonly property real _maxWidth: Math.max(0, centerSection.x - _windowTitleGroup.x - 2 * M.Theme.groupPadding - M.Theme.groupSpacing)
|
||||
width: Math.min(implicitWidth, _maxWidth)
|
||||
width: Math.min(naturalWidth, _maxWidth)
|
||||
}
|
||||
}
|
||||
Item {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ M.BarSection {
|
|||
readonly property real _iconOffset: _icon.visible ? _icon.width + root.spacing : 0
|
||||
|
||||
// Natural content width — Bar.qml uses this to cap the group width
|
||||
implicitWidth: _iconOffset + _label.implicitWidth
|
||||
readonly property real naturalWidth: _iconOffset + _label.implicitWidth
|
||||
|
||||
IconImage {
|
||||
id: _icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue