Linux with FlatLaf window decorations: right and bottom window resize drag areas were 2px smaller than at left and top sides

This commit is contained in:
Karl Tauber
2025-01-26 13:59:46 +01:00
parent 6c49b8bc4d
commit 3a8a55a545

View File

@@ -119,9 +119,10 @@ public abstract class FlatWindowResizer
int x = 0; int x = 0;
int y = 0; int y = 0;
int width = resizeComp.getWidth(); Container cont = topDragComp.getParent();
int height = resizeComp.getHeight(); int width = cont.getWidth();
if( width == 0 || height == 0 ) int height = cont.getHeight();
if( width <= 0 || height <= 0 )
return; return;
Insets resizeInsets = getResizeInsets(); Insets resizeInsets = getResizeInsets();