Add missing screenScaleFactor for implicit sizes

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-16 15:15:44 +01:00
parent fe15a0a513
commit b72f1bb314
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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")