mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Center remove button in row by giving it the same height as the input.
Adjust width of rows when scrollbar is present so they don't overlap. CURA-9149
This commit is contained in:
parent
271868eafd
commit
5a8343ce25
1 changed files with 3 additions and 3 deletions
|
@ -196,7 +196,7 @@ Item
|
|||
height: parent.height
|
||||
width: UM.Theme.getSize("setting").width + UM.Theme.getSize("default_margin").width
|
||||
|
||||
ScrollBar.vertical: UM.ScrollBar {}
|
||||
ScrollBar.vertical: UM.ScrollBar { id: scrollBar }
|
||||
clip: true
|
||||
spacing: UM.Theme.getSize("default_lining").height
|
||||
|
||||
|
@ -244,7 +244,7 @@ Item
|
|||
Loader
|
||||
{
|
||||
id: settingLoader
|
||||
width: UM.Theme.getSize("setting").width - removeButton.width
|
||||
width: UM.Theme.getSize("setting").width - removeButton.width - scrollBar.width
|
||||
height: UM.Theme.getSize("section").height + UM.Theme.getSize("narrow_margin").height
|
||||
enabled: provider.properties.enabled === "True"
|
||||
property var definition: model
|
||||
|
@ -299,7 +299,7 @@ Item
|
|||
{
|
||||
id: removeButton
|
||||
width: UM.Theme.getSize("setting").height
|
||||
height: UM.Theme.getSize("setting").height
|
||||
height: UM.Theme.getSize("setting").height + UM.Theme.getSize("narrow_margin").height
|
||||
|
||||
onClicked: addedSettingsModel.setVisible(model.key, false)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue