mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NRadioButton now includes it's NText when calculating it's implicit width
This commit is contained in:
@@ -8,6 +8,8 @@ RadioButton {
|
||||
|
||||
property real pointSize: Style.fontSizeM
|
||||
|
||||
implicitWidth: outerCircle.implicitWidth + Style.marginS + contentItem.implicitWidth
|
||||
|
||||
indicator: Rectangle {
|
||||
id: outerCircle
|
||||
|
||||
@@ -43,6 +45,7 @@ RadioButton {
|
||||
contentItem: NText {
|
||||
text: root.text
|
||||
pointSize: root.pointSize
|
||||
//implicitWidth: content.contentWidth
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: outerCircle.right
|
||||
anchors.right: parent.right
|
||||
|
||||
Reference in New Issue
Block a user