|
|
|
@ -43,12 +43,16 @@ public class LabelElement extends AbstractElement<UILabel> {
|
|
|
|
|
} |
|
|
|
|
Dimension dim = getComponent().getPreferredSize(); |
|
|
|
|
if ("width".equals(name)) { |
|
|
|
|
dim.width = Integer.parseInt(val); |
|
|
|
|
getComponent().setPreferredSize(dim); |
|
|
|
|
if (val.length() > 0) { |
|
|
|
|
dim.width = Integer.parseInt(val); |
|
|
|
|
getComponent().setPreferredSize(dim); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if ("height".equals(name)) { |
|
|
|
|
dim.height = Integer.parseInt(val); |
|
|
|
|
getComponent().setPreferredSize(dim); |
|
|
|
|
if (val.length() > 0) { |
|
|
|
|
dim.height = Integer.parseInt(val); |
|
|
|
|
getComponent().setPreferredSize(dim); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|