improve applets layout on formFactor changes

--based on a strande behavior when changing form
factors and not appearing correctly I found the
reason why this is happening... this fixes the
audoban separator wrong latte behavior and for
the widget also concerning of course when the
dock changes form factor
--this fix inlude also a fix of a binding loop
for the heading of launchers inside the AppletItem
pull/1/head
Michail Vourlakos 8 years ago
parent 8d195354b0
commit ccd498d884

@ -519,6 +519,26 @@ Item {
}
}
Connections {
target: root
onIsVerticalChanged: {
if (container.latteApplet) {
return;
}
wrapper.disableScaleWidth = false;
wrapper.disableScaleHeight = false;
if (root.isVertical) {
wrapper.updateLayoutHeight();
wrapper.updateLayoutWidth();
} else {
wrapper.updateLayoutWidth();
wrapper.updateLayoutHeight();
}
}
}
function updateLayoutHeight(){
if(container.isInternalViewSplitter){
if(!root.editMode)
@ -990,8 +1010,8 @@ Item {
}
PlasmaExtras.Heading {
anchors.fill: parent
anchors.centerIn: parent
width: parent.width
height: parent.height
text: i18n("Launchers Area")
level: 3

Loading…
Cancel
Save