I've added the following code before return label; inside parseLabel:
if (xml.@autosize.length() > 0 && xml.@autosize != "false")
label.autoSize = TextFieldAutoSize.LEFT;
And added:
if (line.@autosize.length() > 0 && line.@autosize != "false") {
UILabel(child).autoSize = TextFieldAutoSize.LEFT;
}
After:
if (childAttributes.fillH || line.@height.length()>0) {
UILabel(child).fixwidth = childAttributes.widthH;
}
Inside layout.
The reason of it? well, because I wanted to add a label inside a
UIScrollVertical component, with a fixed width, but enabling auto sizing, that
way the textfield would automatically increase its height, and vertical
alignment would work as expected.
Original issue reported on code.google.com by neverbi...@gmail.com on 14 Jul 2012 at 4:50
Original issue reported on code.google.com by
neverbi...@gmail.com
on 14 Jul 2012 at 4:50