Announcement

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

    Overflow "clip_h" on a Layout produces warning

    Smart GWT LGPL Version 4.1d build 10/17/2013

    The docs don't state which classes can and cannot make use of horizontal/vertical clipping. Here I'm creating a child of Layout and applying a clipped overflow to the child. Is this intentional functionality for the Layout class or a bug?

    A class that extends Layout:
    Code:
    class MyLayout extends com.smartgwt.client.widgets.layout.Layout

    An instance of that class instantiated then an immediate call to setOverflow:

    Code:
    MyLayout myLayout = new MyLayout();
    myLayout.setOverflow(Overflow.CLIP_H);
    Warning result:
    This widget has overflow specified as "clip_h". This overflow setting is not supported - defaulting to overflow:"visible".

    However, I do see the clipping applied correctly, and if I comment out that line the layout no longer gets clipped. It looks like a misleading warning.

    Thanks!
    -Becky
    Last edited by beckyo; 28 Oct 2013, 11:25.

    #2
    Thoughts?

    Shouldn't it be OK to apply a clip H or V overflow to a Layout since it's ultimately a <div>?

    Comment


      #3
      Hilarious!

      We work around a spectacular number and variety of browser bugs to provide the functionality of Layout. CLIP_H is not supported because there are just too many bugs to provide it cross-browser.

      Comment


        #4
        I see it working correctly in FF23+, Chrome30+, and IE10+. So long as it continues to be just a warning I'm happy.

        Comment

        Working...
        X