Merge pull request #766 from Kamielvf/resize-hotfix

Fix visual bug occuring when sidepanel is contracted after resizing
This commit is contained in:
Tomas Slusny
2018-03-02 11:48:59 +01:00
committed by GitHub

View File

@@ -87,7 +87,6 @@ public class ClientUI extends JFrame
private JPanel navContainer;
private PluginToolbar pluginToolbar;
private PluginPanel pluginPanel;
private Dimension clientSize;
@Getter
private TitleToolbar titleToolbar;
@@ -388,7 +387,6 @@ public class ClientUI extends JFrame
}
else
{
clientSize = this.getSize();
if (isInScreenBounds((int) getLocationOnScreen().getX() + getWidth() + PANEL_EXPANDED_WIDTH, (int) getLocationOnScreen().getY()))
{
this.setSize(getWidth() + PANEL_EXPANDED_WIDTH, getHeight());
@@ -427,7 +425,7 @@ public class ClientUI extends JFrame
}
else if (getWidth() < Toolkit.getDefaultToolkit().getScreenSize().getWidth())
{
this.setSize(clientSize);
this.setSize(getWidth() - PANEL_EXPANDED_WIDTH, getHeight());
}
pluginPanel = null;