Author: thully
Date: 2013-01-11 15:27:37 -0800 (Fri, 11 Jan 2013)
New Revision: 31041
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoPanelImp.java
Log:
Set external frame size to current size instead of preferred size when floating
a CytoPanel
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoPanelImp.java
===================================================================
---
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoPanelImp.java
2013-01-11 22:19:35 UTC (rev 31040)
+++
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoPanelImp.java
2013-01-11 23:27:37 UTC (rev 31041)
@@ -736,7 +736,7 @@
// Add CytoPanel to the New External Frame
Container contentPane = externalFrame.getContentPane();
contentPane.add(this, BorderLayout.CENTER);
- final Dimension windowSize =
this.getSelectedComponent().getPreferredSize();
+ final Dimension windowSize = this.getSize();
int height = windowSize.height;
if(height>EAST_MAX_HEIGHT)
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.