Fixed size of expandableItem not being the correct width

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-14 09:59:56 +01:00
parent 1569fd7396
commit fb72f9a059
4 changed files with 4 additions and 3 deletions

View file

@ -121,6 +121,7 @@ Item
width: UM.Theme.getSize("default_lining").width width: UM.Theme.getSize("default_lining").width
color: UM.Theme.getColor("lining") color: UM.Theme.getColor("lining")
} }
Cura.PrintSetupSelector Cura.PrintSetupSelector
{ {
width: UM.Theme.getSize("print_setup_widget").width width: UM.Theme.getSize("print_setup_widget").width

View file

@ -74,7 +74,7 @@ Cura.ExpandableComponent
property bool only_show_top_layers: UM.Preferences.getValue("view/only_show_top_layers") property bool only_show_top_layers: UM.Preferences.getValue("view/only_show_top_layers")
property int top_layer_count: UM.Preferences.getValue("view/top_layer_count") property int top_layer_count: UM.Preferences.getValue("view/top_layer_count")
width: UM.Theme.getSize("layerview_menu_size").width width: base.width - 2 * UM.Theme.getSize("default_margin").width
height: childrenRect.height height: childrenRect.height
spacing: UM.Theme.getSize("layerview_row_spacing").height spacing: UM.Theme.getSize("layerview_row_spacing").height

View file

@ -111,7 +111,7 @@ Item
// Make the popup right aligned with the rest. The 3x padding is due to left, right and padding between // Make the popup right aligned with the rest. The 3x padding is due to left, right and padding between
//the button & text. //the button & text.
x: -width + collapseButton.width + headerItemLoader.width + 3 * background.padding x: -width + collapseButton.width + headerItemLoader.width + 3 * background.padding
padding: UM.Theme.getSize("default_margin").width
closePolicy: Popup.CloseOnPressOutsideParent closePolicy: Popup.CloseOnPressOutsideParent
background: Rectangle background: Rectangle

View file

@ -92,7 +92,7 @@ Cura.ExpandableComponent
popupItem: Item popupItem: Item
{ {
width: base.width width: base.width - 2 * UM.Theme.getSize("default_margin").width
height: 200 height: 200
TabBar TabBar