B4J Question VBox & TextField Issue

ShaneG30

Well-Known Member
Licensed User
I'm creating a wrapper for VBox and HBox (along with LinearLayout and UIStackView). I've completed VBox however, I have an issue with the TextField control: When I add one to the VBox, the VBox ignores its "PrefWidth" property.

I'm creating the wrappers instead of using the designer because this gives me more control over the UI and how/when it's generated.

Project is attached.
 

Attachments

Daestrum

Well-Known Member
Licensed User
I believe the width of the Vbox is dependant on the width of the items you add to it.
You can set the minimum and maximum width of the Vbox, and set whether the items take up the full width of the Vbox (providing they are resizable).
 
Top