Merge pull request #4638 from deathbeam/fix-clientui-sidebar

Reverse ClientUI sidebar condition
This commit is contained in:
Tomas Slusny
2018-08-02 10:25:01 +02:00
committed by GitHub

View File

@@ -735,13 +735,14 @@ public class ClientUI
{
final Rectangle bounds = frame.getBounds();
// Try to expand sidebar
if (!sidebarOpen)
{
bounds.width += pluginToolbar.getWidth();
}
if (config.automaticResizeType() == ExpandResizeType.KEEP_GAME_SIZE)
{
// Try to contract sidebar
if (sidebarOpen)
{
bounds.width -= pluginToolbar.getWidth();
}
// Try to contract plugin panel
if (pluginPanel != null)