update panel alignment correctly

--when the dock was changing between form
factors the edge alignments must be tranlated
correctly. e.g. left and right must
become top and bottom accordingly
v0.6
Michail Vourlakos 8 years ago
parent fac1ed6be6
commit cf71eac686

@ -537,6 +537,20 @@ DragDrop.DropArea {
} }
} }
onIsVerticalChanged: {
if (isVertical) {
if (plasmoid.configuration.panelPosition === Latte.Dock.Left)
plasmoid.configuration.panelPosition = Latte.Dock.Top;
else if (plasmoid.configuration.panelPosition === Latte.Dock.Right)
plasmoid.configuration.panelPosition = Latte.Dock.Bottom;
} else {
if (plasmoid.configuration.panelPosition === Latte.Dock.Top)
plasmoid.configuration.panelPosition = Latte.Dock.Left;
else if (plasmoid.configuration.panelPosition === Latte.Dock.Bottom)
plasmoid.configuration.panelPosition = Latte.Dock.Right;
}
}
onProportionIconSizeChanged: { onProportionIconSizeChanged: {
if (proportionIconSize!==-1) if (proportionIconSize!==-1)
updateAutomaticIconSize(); updateAutomaticIconSize();

Loading…
Cancel
Save