1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00

fix more binding loops for AppletItem

This commit is contained in:
Michail Vourlakos 2020-05-19 11:01:55 +03:00
parent 12d6302fc3
commit 737f680853

View File

@ -93,7 +93,7 @@ Item{
property int iconSize: appletItem.metrics.iconSize
property int marginsThickness: appletItem.metrics.totals.thicknessEdges
property int marginsLength: root.inFullJustify && atScreenEdge && !parabolicEffectMarginsEnabled ? edgeLengthMargins : localLengthMargins //Fitt's Law
property int marginsLength: 0 //Fitt's Law, through Binding to avoid Binding loops
property int localLengthMargins: isSeparator || !communicator.requires.lengthMarginsEnabled || isInternalViewSplitter ? 0 : appletItem.lengthAppletFullMargins
property int edgeLengthMargins: edgeLengthMarginsDisabled ? 0 : appletItem.lengthAppletPadding * 2
@ -293,6 +293,13 @@ Item{
}
}
Binding {
target: wrapper
property: "marginsLength"
when: latteView && (!root.inStartup || visibilityManager.inTempHiding)
value: root.inFullJustify && atScreenEdge && !parabolicEffectMarginsEnabled ? edgeLengthMargins : localLengthMargins
}
function updateAutoFillLength() {
if (appletItem.isAutoFillApplet) {
appletItem.layouter.updateSizeForAppletsInFill();