Export to GitHub

mad-components - issue #35

UIForm change


Posted on Jul 14, 2012 by Swift Kangaroo

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.

Comment #1

Posted on Jul 30, 2012 by Grumpy Bird

Good idea. It will be in the next update.

Status: Fixed

Labels:
Type-Defect Priority-Medium