Apply size also when Plasmoid displayed on edges
This commit is contained in:
parent
2ee7b9af64
commit
4920e885ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue