Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 191 - packed  (Read 5045 times)
Reuben B.
Four Js
Posts: 1116


« 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/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines