Jump to content

Video about using layouts in unigui


mhmda

Recommended Posts

Thank you very much for the video!

All I know about layouts is for your excellent post:

I have a "post-it" with your summary:

if the parent layout is 'vbox' then for the children set width: '100%'
if the parent layout is 'hbox' then for the children set height: '100%'

flex: means the percent of width/height (depending in parent layout, if parent layout is 'vbox' then flex means height else means width
flex=1 it will take the entire width/height unless there is another child with flex value <> 0 
flex=1 for more than one child means all children will have the same percentage of width/height
flex=1 for two, means first one will take 50% and second will take 50%
flex=1 for three, means first,second, 3d will take 33% of with/height
flex=0 the width/height will be the same as in design view 

But today with your video I learn about Flex=2!

  • Upvote 1
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...