svn commit: r12881 - trunk/src_new/org/argouml/uml/ui/PropPanel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-06-19 13:53:07-0700
New Revision: 12881

Modified:
   trunk/src_new/org/argouml/uml/ui/PropPanel.java

Log:
Issue 4735 - mark temporary fix with TODO

Modified: trunk/src_new/org/argouml/uml/ui/PropPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/PropPanel.java?view=diff&rev=12881&p1=trunk/src_new/org/argouml/uml/ui/PropPanel.java&p2=trunk/src_new/org/argouml/uml/ui/PropPanel.java&r1=12880&r2=12881
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/PropPanel.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/PropPanel.java	2007-06-19 13:53:07-0700
@@ -664,8 +664,15 @@
      * @return a scrollpane with a single row
      */
     protected JScrollPane getSingleRowScroll(JList list) {
+        // TODO: Temporary fix while we find something better - tfm
         list.setVisibleRowCount(2);
-        return new JScrollPane(list);
+//        list.setVisibleRowCount(1);
+        JScrollPane pane = new JScrollPane(list);
+        // Scroll bar is not allowed to take up more than 20% of height
+//        pane.getHorizontalScrollBar().setMaximumSize(
+//                new Dimension(1000, 
+//                        list.getPreferredScrollableViewportSize().height / 5));
+        return pane;
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.