fix(window-title): use named property instead of read-only implicitWidth

This commit is contained in:
Damocles 2026-04-17 09:34:25 +02:00
parent d9101c2415
commit ce14a170a5
2 changed files with 2 additions and 2 deletions

View file

@ -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 {