cs7258 / mad-components

Automatically exported from code.google.com/p/mad-components
0 stars 0 forks source link

UIForm change #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Good idea.  It will be in the next update.

Original comment by doc.andr...@gmail.com on 30 Jul 2012 at 11:39