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:
parent
02d7e2a7d8
commit
c6ea796f00
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user