[ExpandableListItem] Make expanded actions list view respect font

Previously it was basing its height on an icon size, which does not
scale with the font. As a result, sometimes the actions list could
get clipped when using certian fonts and font sizes. Let's change this
to multiples of GridUnit, which adjusts with the font.
This commit is contained in:
Nate Graham 2021-01-20 10:34:30 -07:00
parent 8c320d6841
commit 8b16de4f6b

View File

@ -508,7 +508,7 @@ Item {
anchors.leftMargin: listItemIcon.width + PlasmaCore.Units.smallSpacing anchors.leftMargin: listItemIcon.width + PlasmaCore.Units.smallSpacing
anchors.rightMargin: listItemIcon.width + PlasmaCore.Units.smallSpacing * 2 anchors.rightMargin: listItemIcon.width + PlasmaCore.Units.smallSpacing * 2
height: (PlasmaCore.Units.iconSizes.smallMedium + PlasmaCore.Units.smallSpacing * 2) * actionsList.count height: PlasmaCore.Units.gridUnit * 2 * actionsList.count
focus: true focus: true
clip: true clip: true