respect applet maximumLength==0

--if the applet has set maximum length to
zero then the applet should not be shown
work/m_layershell
Michail Vourlakos 3 years ago
parent 81c298114b
commit 9ce7c5b72d

@ -296,7 +296,7 @@ Item{
|| appletItem.originalAppletBehavior)) {
//this way improves performance, probably because during animation the preferred sizes update a lot
if (appletMaximumLength>0 && appletMaximumLength < appletItem.metrics.iconSize){
if (appletMaximumLength>=0 && appletMaximumLength < appletItem.metrics.iconSize){
return appletMaximumLength;
} else if (appletMinimumLength > appletItem.metrics.iconSize){
return appletMinimumLength;

Loading…
Cancel
Save