OSDN Git Service

Javadoc
authorNathanSweet <nathan.sweet@gmail.com>
Sun, 6 Oct 2013 16:49:33 +0000 (18:49 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Sun, 6 Oct 2013 16:49:33 +0000 (18:49 +0200)
gdx/src/com/badlogic/gdx/scenes/scene2d/ui/Label.java

index 247d7c4..e69fc84 100644 (file)
@@ -228,7 +228,11 @@ public class Label extends Widget {
 \r
        /** If false, the text will only wrap where it contains newlines (\n). The preferred size of the label will be the text bounds.\r
         * If true, the text will word wrap using the width of the label. The preferred width of the label will be 0, it is expected\r
-        * that the something external will set the width of the label. Default is false. */\r
+        * that the something external will set the width of the label. Default is false.\r
+        * <p>\r
+        * When wrap is enabled, the label's preferred height depends on the width of the label. In some cases the parent of the label\r
+        * will need to layout twice: once to set the width of the label and a second time to adjust to the label's new preferred\r
+        * height. */\r
        public void setWrap (boolean wrap) {\r
                this.wrap = wrap;\r
                invalidateHierarchy();\r