mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 17:15:56 +08:00
Add missing screenScaleFactor for implicit sizes
CURA-5785
This commit is contained in:
parent
fe15a0a513
commit
b72f1bb314
@ -6,7 +6,7 @@ import UM 1.2 as UM
|
|||||||
// The expandable component has 3 major sub components:
|
// 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 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 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
|
Item
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
@ -69,8 +69,8 @@ Item
|
|||||||
onHeightChanged: popup.height = popupItem.height + 2 * popup.padding
|
onHeightChanged: popup.height = popupItem.height + 2 * popup.padding
|
||||||
}
|
}
|
||||||
|
|
||||||
implicitHeight: 100
|
implicitHeight: 100 * screenScaleFactor
|
||||||
implicitWidth: 400
|
implicitWidth: 400 * screenScaleFactor
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
id: background
|
id: background
|
||||||
|
@ -24,7 +24,7 @@ Cura.ExpandableComponent
|
|||||||
signal showTooltip(Item item, point location, string text)
|
signal showTooltip(Item item, point location, string text)
|
||||||
signal hideTooltip()
|
signal hideTooltip()
|
||||||
|
|
||||||
implicitWidth: 200
|
implicitWidth: 200 * screenScaleFactor
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
iconSource: UM.Theme.getIcon("pencil")
|
iconSource: UM.Theme.getIcon("pencil")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user