This commit is contained in:
Roman Shevchenko
2012-02-28 20:30:42 +01:00
parent 979a9cd69f
commit e4c80dc570
@@ -168,17 +168,19 @@ public abstract class DialogWrapper {
*/
protected DialogWrapper(Project project, boolean canBeParent) {
myPeer = createPeer(project, canBeParent);
myPeer.getWindow().addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
if (!myResizeInProgress) {
myActualSize = myPeer.getSize();
if (myErrorText.isVisible()) {
myActualSize.height -= myErrorText.getHeight() + 10;
if (myPeer != null) {
myPeer.getWindow().addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
if (!myResizeInProgress) {
myActualSize = myPeer.getSize();
if (myErrorText.isVisible()) {
myActualSize.height -= myErrorText.getHeight() + 10;
}
}
}
}
});
});
}
createDefaultActions();
}