mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Align the dropdown panel in the combobox with the parent and get rid of
binding loop messages.
This commit is contained in:
parent
1d860c51c5
commit
6850ad4c9d
3 changed files with 14 additions and 5 deletions
|
|
@ -90,7 +90,7 @@ SettingItem
|
||||||
popup: Popup {
|
popup: Popup {
|
||||||
y: control.height - UM.Theme.getSize("default_lining").height
|
y: control.height - UM.Theme.getSize("default_lining").height
|
||||||
width: control.width
|
width: control.width
|
||||||
implicitHeight: contentItem.implicitHeight
|
implicitHeight: contentItem.implicitHeight + 2 * UM.Theme.getSize("default_lining").width
|
||||||
padding: UM.Theme.getSize("default_lining").width
|
padding: UM.Theme.getSize("default_lining").width
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ListView {
|
||||||
|
|
@ -117,8 +117,9 @@ SettingItem
|
||||||
contentItem: Label
|
contentItem: Label
|
||||||
{
|
{
|
||||||
// FIXME: Somehow the top/bottom anchoring is not correct on Linux and it results in invisible texts.
|
// FIXME: Somehow the top/bottom anchoring is not correct on Linux and it results in invisible texts.
|
||||||
anchors.top: parent.top
|
anchors.fill: parent
|
||||||
anchors.bottom: parent.bottom
|
anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||||
|
|
||||||
text: modelData.value
|
text: modelData.value
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ SettingItem
|
||||||
popup: Popup {
|
popup: Popup {
|
||||||
y: control.height - UM.Theme.getSize("default_lining").height
|
y: control.height - UM.Theme.getSize("default_lining").height
|
||||||
width: control.width
|
width: control.width
|
||||||
implicitHeight: contentItem.implicitHeight
|
implicitHeight: contentItem.implicitHeight + 2 * UM.Theme.getSize("default_lining").width
|
||||||
padding: UM.Theme.getSize("default_lining").width
|
padding: UM.Theme.getSize("default_lining").width
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ListView {
|
||||||
|
|
@ -206,6 +206,10 @@ SettingItem
|
||||||
|
|
||||||
contentItem: Label
|
contentItem: Label
|
||||||
{
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||||
|
|
||||||
text: model.name
|
text: model.name
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
color:
|
color:
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ SettingItem
|
||||||
popup: Popup {
|
popup: Popup {
|
||||||
y: control.height - UM.Theme.getSize("default_lining").height
|
y: control.height - UM.Theme.getSize("default_lining").height
|
||||||
width: control.width
|
width: control.width
|
||||||
implicitHeight: contentItem.implicitHeight
|
implicitHeight: contentItem.implicitHeight + 2 * UM.Theme.getSize("default_lining").width
|
||||||
padding: UM.Theme.getSize("default_lining").width
|
padding: UM.Theme.getSize("default_lining").width
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ListView {
|
||||||
|
|
@ -201,6 +201,10 @@ SettingItem
|
||||||
|
|
||||||
contentItem: Label
|
contentItem: Label
|
||||||
{
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||||
|
anchors.rightMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||||
|
|
||||||
text: model.name
|
text: model.name
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
color:
|
color:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue