提交 03236c77 编写于 作者: A alexp

6956842: BasicTreeUI.getPreferredSize(JComp c) is delegated to...

6956842: BasicTreeUI.getPreferredSize(JComp c) is delegated to getPreferredSize(c, true) not (c, false)
Reviewed-by: rupashka
上级 1c796c34
...@@ -1965,18 +1965,18 @@ public class BasicTreeUI extends TreeUI ...@@ -1965,18 +1965,18 @@ public class BasicTreeUI extends TreeUI
} }
/** Returns the preferred size to properly display the tree, /** Returns the preferred size to properly display the tree,
* this is a cover method for getPreferredSize(c, false). * this is a cover method for getPreferredSize(c, true).
*/ */
public Dimension getPreferredSize(JComponent c) { public Dimension getPreferredSize(JComponent c) {
return getPreferredSize(c, true); return getPreferredSize(c, true);
} }
/** Returns the preferred size to represent the tree in /** Returns the preferred size to represent the tree in
* <I>c</I>. If <I>checkConsistancy</I> is true * <I>c</I>. If <I>checkConsistency</I> is true
* <b>checkConsistancy</b> is messaged first. * <b>checkConsistency</b> is messaged first.
*/ */
public Dimension getPreferredSize(JComponent c, public Dimension getPreferredSize(JComponent c,
boolean checkConsistancy) { boolean checkConsistency) {
Dimension pSize = this.getPreferredMinSize(); Dimension pSize = this.getPreferredMinSize();
if(!validCachedPreferredSize) if(!validCachedPreferredSize)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册