fix #913,update Justify calculations in editMode

--in Justify alignment fillWidth(s)/Height(s) applets
may exist. In such case the calculations for their values
should be activated because there is a chance that the
panel contents would go out of bounds and out of
screen. This way we make sure that all contents will be always
visible.
pull/2/head
Michail Vourlakos
parent 2bb2c23d01
commit 8a3239c924

@ -313,7 +313,9 @@ Item{
property:"sizeWithNoFillApplets"
when: _mainLayout
value: {
if (!visibilityManager || !visibilityManager.normalState)
//! in EditMode we must update that size because the user may add new applets
//! and the contents may go out of bounds
if (!visibilityManager || (!visibilityManager.normalState && !root.editMode))
return;
var space = 0;

@ -44,10 +44,7 @@ Item{
}
if (container.needsFillSpace && (container.sizeForFill>-1) && root.isHorizontal){
//! in edit mode shrink a bit the fill sizes because the splitters are shown
return root.editMode && container.needsFillSpace && (container.sizeForFill > 5*root.iconSize) ?
container.sizeForFill - 2.5*root.iconSize : container.sizeForFill;
//return container.sizeForFill;
return container.sizeForFill;
}
if (container.latteApplet) {
@ -75,11 +72,7 @@ Item{
}
if (container.needsFillSpace && (container.sizeForFill>-1) && root.isVertical){
//! in edit mode shrink a bit the fill sizes because the splitters are shown
return root.editMode && container.needsFillSpace && (container.sizeForFill > 5*root.iconSize) ?
container.sizeForFill - 2.5*root.iconSize : container.sizeForFill;
//return container.sizeForFill;
return container.sizeForFill;
}
if (container.latteApplet) {

Loading…
Cancel
Save