mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-203161 SOE at ThreeComponentsSplitter on attempt to open Run tool window in certain Gradle-based projects
This commit is contained in:
@@ -211,7 +211,9 @@ public class BuildTreeConsoleView implements ConsoleView, DataProvider, BuildCon
|
||||
int lastSize = getLastSize();
|
||||
if (firstSize == 0 && lastSize == 0) {
|
||||
int width = Math.round(getWidth() / 2f);
|
||||
setFirstSize(width);
|
||||
if (width > 0) {
|
||||
setFirstSize(width);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -494,16 +494,18 @@ public class ThreeComponentsSplitter extends JPanel implements Disposable {
|
||||
|
||||
|
||||
public void setFirstSize(final int size) {
|
||||
int oldSize = myFirstSize;
|
||||
myFirstSize = Math.max(getMinSize(true), size);
|
||||
if (firstVisible()) {
|
||||
if (firstVisible() && oldSize != myFirstSize) {
|
||||
doLayout();
|
||||
repaint();
|
||||
}
|
||||
}
|
||||
|
||||
public void setLastSize(final int size) {
|
||||
int oldSize = myLastSize;
|
||||
myLastSize = Math.max(getMinSize(false), size);
|
||||
if (lastVisible()) {
|
||||
if (lastVisible() && oldSize != myLastSize) {
|
||||
doLayout();
|
||||
repaint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user