on xenial help sign in
Fix eliding of title

Previous changes prevented the panelTitle's text from eliding to get out of the way of the indicators. By setting the anchors properly, we can fix that issue.

commit338a7a403bf61cee6053a0f8952d2c79eeafc69b authorDalton Durst <dalton@ubports.com> dateTue 10 Mar 2020, 21:05 (7 years ago) parentd952c52
1 file changed+4−4
qml/Panel/Panel.qml+4−4
qml/Panel/Panel.qml+4−4
@@ -342,9 +342,10 @@ Item {
342342 id: rowLabel
343343 anchors {
344344 left: parent.left
345+ right: root.partialWidth ? parent.right : parent.left
346+ rightMargin: touchMenuIcon.width
345347 }
346348 objectName: "panelTitle"
347− width: root.width - __indicators.maxDragHandleSize - touchMenuIcon.width
348349 height: root.minimizedPanelHeight
349350 verticalAlignment: Text.AlignVCenter
350351 elide: Text.ElideRight
@@ -356,15 +357,14 @@ Item {
356357 opacity: __applicationMenus.visible && !__applicationMenus.expanded
357358 Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
358359 visible: opacity !== 0
359− readonly property var implicitWidthWithMargin: implicitWidth === 0 ? 0 : implicitWidth + units.gu(1)
360360 }
361361
362362 Icon {
363363 id: touchMenuIcon
364364 objectName: "touchMenuIcon"
365365 anchors {
366− right: parent.right
367− rightMargin: parent.width - rowLabel.implicitWidthWithMargin - width
366+ left: parent.left
367+ leftMargin: rowLabel.contentWidth + units.dp(2)
368368 verticalCenter: parent.verticalCenter
369369 }
370370 width: units.gu(2)