Announcement

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

    Shadows are not included in horizontal space calculations ?

    Hi,

    I'm displaying to lists in a HLayout. If I set setShowShadow there a problem with the horizontal space: somehow the shadows with don't get included in the space required and a scroll bar appears. (Pic. 1)

    If I set setShadows to false, it sets the layout correctly. (Pic. 2)

    I'm using SmartGWT 1.1

    Any idea of why this is happening ?

    Thanks,
    Juan
    Attached Files

    #2
    Shadows are normally ignored for layout purposes. This is what you want, because in Pic 1, the right presentation is that the resizebars appear over the shadows, instead of to the right of them.

    What you've most likely done here is placed elements with shadows inside overflow:visible containers. They will expand to accommodate the shadows, then the surrounding layout with work with their size including the shadows.

    You just need to put the shadows on the right elements and use the right overflow settings - no way to advise further without knowing the actual parent/child situation you've set up here.

    Comment


      #3
      Thank you. You are right: setting the overflow to 'hidden' in some places changes the rendering and avoids the scroll bars (I had not set any overflow value) while at the same time the resize bars are rendered over the shadows.

      Comment

      Working...
      X