Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on August 25, 2023, 05:32:31 am



Title: Ask Reuben 191 - packed
Post by: Reuben B. on August 25, 2023, 05:32:31 am
In one of the very first Ask Reuben articles, I looked at a question that gets raised when a form has no stretchable elements.  The default spread out rendering was often not what was desired.  The solution was to add an invisible stretchable element such as an empty IMAGE.   This invisible widget would stretch to fill available space, and as a result push or pack the other elements together.  The question then gets raised, should we need to add this invisible stretchable element, can there be a better way?
 
In GBC 4.01.14, our developers added a better way.  This is in the form of a new Presentation Style Attribute for VBOX and HBOX named “packed”.  If this style is added to a VBOX or HBOX then the VBOX or HBOX child elements are packed to the top or left respectively, you no longer need to add an invisible stretchable element for these cases.
 
Read more at https://4js.com/ask-reuben/ig-191/