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

fill one pixel gap of justify splitters

This commit is contained in:
Michail Vourlakos 2022-01-04 00:10:41 +02:00
parent 02d7e2a7d8
commit c6ea796f00

View File

@ -175,7 +175,7 @@ Item{
var parentLayoutCenter = (appletItem.layouter.maxLength - layoutsContainer.mainLayout.length)/2;
var twinLayoutExceededCenter = Math.max(0, (parentTwinLayoutLength + root.maxJustifySplitterSize) - parentLayoutCenter);
var availableLength = Math.max(0, parentLayoutCenter - twinLayoutExceededCenter);
var availableLength = Math.max(0, parentLayoutCenter - twinLayoutExceededCenter) + 1; //add one pixel in order to not leave a gap inConfigureAppletsMode
return Math.max(root.maxJustifySplitterSize, availableLength - parentLayoutLength);
}