mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Fix adjustable monitor component width
CURA-5943 - Add rounding - If there's no sidebar, use full width
This commit is contained in:
parent
1c4f7c7fb7
commit
845b320981
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ Item
|
|||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
|
||||
width: parent.width * 0.7
|
||||
// If the sidebar is not set, the view should take the complete space.
|
||||
property var widthFactor: monitorSidebarComponent.source == "" ? 1.0 : 0.7
|
||||
|
||||
width: Math.round(parent.width * widthFactor)
|
||||
height: parent.height
|
||||
|
||||
property real maximumWidth: parent.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue