dont add margins for fitt's case in fill applets

pull/15/head
Michail Vourlakos 5 years ago
parent 5604d8cb3f
commit 61ce906ef9

@ -49,7 +49,7 @@ Item{
readonly property bool atEdgeForcingFittsLaw: !isSeparator && !parabolicEffectMarginsEnabled && atScreenEdge
readonly property int subtrackedMargins: {
if (atEdgeForcingFittsLaw && ((firstChildOfStartLayout && rightSpacer) || (lastChildOfEndLayout && !rightSpacer ))) {
if (atEdgeForcingFittsLaw && !appletItem.needsFillSpace && ((firstChildOfStartLayout && rightSpacer) || (lastChildOfEndLayout && !rightSpacer ))) {
return (wrapper.edgeLengthMarginsDisabled ? appletItem.metrics.margin.length + appletItem.lengthAppletPadding : appletItem.metrics.margin.length);
}

Loading…
Cancel
Save