Author: kono
Date: 2009-12-01 14:22:01 -0800 (Tue, 01 Dec 2009)
New Revision: 18631

Modified:
   corelibs/trunk/ding/src/ding/view/DGraphView.java
Log:
fitContent will be called twice in this version, and zoom level problem has not 
been fixed yet.

Modified: corelibs/trunk/ding/src/ding/view/DGraphView.java
===================================================================
--- corelibs/trunk/ding/src/ding/view/DGraphView.java   2009-12-01 22:01:29 UTC 
(rev 18630)
+++ corelibs/trunk/ding/src/ding/view/DGraphView.java   2009-12-01 22:22:01 UTC 
(rev 18631)
@@ -2388,11 +2388,13 @@
                m_networkCanvas.paint(g);
                // Restore network to original size
                m_networkCanvas.setSize(originalSize);
-
+               fitContent(/* updateView = */ false);
+               
                // paint foreground canvas
                originalSize = m_foregroundCanvas.getSize();
                m_foregroundCanvas.setSize(width, height);
                m_foregroundCanvas.paint(g);
+               // Restore foreground to original size
                m_foregroundCanvas.setSize(originalSize);
 
                return image;

--

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.


Reply via email to