If someone call's setPreferredSize(), we should use that size.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2289 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -348,6 +348,10 @@ public class MultiLineLabel extends JComponent
|
||||
// documentation inherited
|
||||
public Dimension getPreferredSize ()
|
||||
{
|
||||
if (isPreferredSizeSet()) {
|
||||
return super.getPreferredSize();
|
||||
}
|
||||
|
||||
if (_dirty) {
|
||||
// attempt to lay out the label before obtaining its preferred
|
||||
// dimensions
|
||||
|
||||
Reference in New Issue
Block a user