mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fixed size of expandableItem not being the correct width
CURA-5785
This commit is contained in:
parent
1569fd7396
commit
fb72f9a059
4 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue