Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Changing height for Layout component to less than 100px

    Hello Isomorphic,

    For our SmartGWT based project, we have a component inheriting VLayout, which gets filled with various widgets/canvas components.
    The issue we are facing is that VLayout seems to take a min. height of 100px., which we are not able to override.
    Is there any way we can reduce the height for VLayout to (say) 50px?

    I am using Isomorphic SmartClient/SmartGWT Framework (v9.1p_2016-05-05/Enterprise Deployment 2016-05-05)

    Thanks!

    #2
    Use setHeight() to change the height.

    Note that default setting for overflow (which is "visible") will cause the layout to expand to the size of its contained members. In that case you will need to either set the overflow to auto or hidden (to cause scrolling or clipping, respectively) or you will also need to set the heights of contained members so that they are also able to shrink to less than 100px (which is done in exactly the same way as for the Layout - these properties apply to all Canvas subclasses).

    Comment


      #3
      Thanks for the quick reply!
      This is something similar to what I was looking for.

      Comment

      Working...
      X