mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Add missing screenScaleFactor for implicit sizes
CURA-5785
This commit is contained in:
parent
fe15a0a513
commit
b72f1bb314
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ import UM 1.2 as UM
|
|||
// The expandable component has 3 major sub components:
|
||||
// * The headerItem; Always visible and should hold some info about what happens if the component is expanded
|
||||
// * The popupItem; The content that needs to be shown if the component is expanded.
|
||||
// * The Icon; An icon that is displayed on the right of the drawer.
|
||||
// * The icon; An icon that is displayed on the right of the drawer.
|
||||
Item
|
||||
{
|
||||
id: base
|
||||
|
@ -69,8 +69,8 @@ Item
|
|||
onHeightChanged: popup.height = popupItem.height + 2 * popup.padding
|
||||
}
|
||||
|
||||
implicitHeight: 100
|
||||
implicitWidth: 400
|
||||
implicitHeight: 100 * screenScaleFactor
|
||||
implicitWidth: 400 * screenScaleFactor
|
||||
Rectangle
|
||||
{
|
||||
id: background
|
||||
|
|
|
@ -24,7 +24,7 @@ Cura.ExpandableComponent
|
|||
signal showTooltip(Item item, point location, string text)
|
||||
signal hideTooltip()
|
||||
|
||||
implicitWidth: 200
|
||||
implicitWidth: 200 * screenScaleFactor
|
||||
height: childrenRect.height
|
||||
iconSource: UM.Theme.getIcon("pencil")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue