Set size properly
This commit is contained in:
@@ -87,7 +87,6 @@ public class ClientUI extends JFrame
|
|||||||
private JPanel navContainer;
|
private JPanel navContainer;
|
||||||
private PluginToolbar pluginToolbar;
|
private PluginToolbar pluginToolbar;
|
||||||
private PluginPanel pluginPanel;
|
private PluginPanel pluginPanel;
|
||||||
private Dimension clientSize;
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private TitleToolbar titleToolbar;
|
private TitleToolbar titleToolbar;
|
||||||
@@ -388,7 +387,6 @@ public class ClientUI extends JFrame
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
clientSize = this.getSize();
|
|
||||||
if (isInScreenBounds((int) getLocationOnScreen().getX() + getWidth() + PANEL_EXPANDED_WIDTH, (int) getLocationOnScreen().getY()))
|
if (isInScreenBounds((int) getLocationOnScreen().getX() + getWidth() + PANEL_EXPANDED_WIDTH, (int) getLocationOnScreen().getY()))
|
||||||
{
|
{
|
||||||
this.setSize(getWidth() + PANEL_EXPANDED_WIDTH, getHeight());
|
this.setSize(getWidth() + PANEL_EXPANDED_WIDTH, getHeight());
|
||||||
@@ -427,7 +425,7 @@ public class ClientUI extends JFrame
|
|||||||
}
|
}
|
||||||
else if (getWidth() < Toolkit.getDefaultToolkit().getScreenSize().getWidth())
|
else if (getWidth() < Toolkit.getDefaultToolkit().getScreenSize().getWidth())
|
||||||
{
|
{
|
||||||
this.setSize(clientSize);
|
this.setSize(getWidth() - PANEL_EXPANDED_WIDTH, getHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginPanel = null;
|
pluginPanel = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user