Platform: do not reset tool window's size to the default when project reload is triggered during project opening (OC-3716)

This commit is contained in:
Anton Makeev
2012-05-02 16:22:51 +02:00
parent 38d4a494af
commit 2f2c45017f
@@ -2069,6 +2069,8 @@ public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements
* tool window depending on decoration type.
*/
public void resized(final InternalDecorator source) {
if (!source.isShowing()) return; // do not recalculate the tool window size if it is not yet shown (and, therefore, has 0,0,0,0 bounds)
final WindowInfoImpl info = getInfo(source.getToolWindow().getId());
if (info.isFloating()) {
final Window owner = SwingUtilities.getWindowAncestor(source);