Apply size also when Plasmoid displayed on edges

This commit is contained in:
Martchus 2017-09-20 17:42:22 +02:00
parent 2ee7b9af64
commit 4920e885ea
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ ColumnLayout {
function updateSize() {
switch (plasmoid.location) {
case PlasmaCore.Types.Floating:
case PlasmaCore.Types.TopEdge:
case PlasmaCore.Types.BottomEdge:
case PlasmaCore.Types.LeftEdge:
case PlasmaCore.Types.RightEdge:
var size = plasmoid.nativeInterface.size
parent.width = units.gridUnit * size.width
parent.height = units.gridUnit * size.height