mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-18 21:50:04 +00:00
reworked some content panel logic and listener logic
This commit is contained in:
@@ -86,11 +86,11 @@ public class Panel extends Visual {
|
||||
int l2y = v2.getLocationY();
|
||||
int r2y = v2.getLocationY() + v2.getHeight();
|
||||
|
||||
if(l1x > r2x || l2x > r1x) {
|
||||
if(l1x >= r2x || l2x >= r1x) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return l1y <= r2y && l2y <= r1y;
|
||||
return l1y < r2y && l2y < r1y;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -56,7 +56,7 @@ public class TitleBar extends Visual {
|
||||
maximize.setForegroundColor(Color.LIGHT_GRAY);
|
||||
minimize.setForegroundColor(Color.LIGHT_GRAY);
|
||||
|
||||
this.setSize(1, 30);
|
||||
this.setSize(0, 30);
|
||||
this.setLocation(0, 0);
|
||||
|
||||
setButtonLocation();
|
||||
@@ -97,7 +97,6 @@ public class TitleBar extends Visual {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
Getters
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user