Results 1 to 7 of 7

Thread: FieldSet in Viewport (bottom/right margins different than left/top, even though same)

Threaded View

Previous Post Previous Post   Next Post Next Post
    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext GWT Premium Member
    Join Date
    Dec 2011
    Location
    Earth
    Posts
    243
    Vote Rating
    1
      0  

    Default FieldSet in Viewport (bottom/right margins different than left/top, even though same)

    GXT 3.0.3-SNAPSHOT 11/27 (but existed in 3.0.2 as well)
    GWT 2.4.0
    Windows 7 - 64 bit
    Internet Explorer 8
    Chrome 25

    I had a FieldSet as the child of the ViewPort, and the margins used for top and left are different than the margins for bottom and right. The same behavior exists for ContentPanel, and the issue seems to happen in both IE8 and Chrome.

    I would expect the margins to be the same all away around. If I didn't give margins, I wouldn't be able to see the bottom or right border at all.

    Code:
    Viewport viewport = new Viewport();
    /* have to use a margin to be able to see the right and bottom borders, and margins are not uniform*/
    viewport.add(asWidget(), new MarginData(20);
    RootPanel.get().add(viewport);

    ViewPortFieldSetMargins.zip
    Attached Images Attached Images
    Last edited by nbuesing; 4 Dec 2012 at 10:13 AM. Reason: trying to fix attachments, forum messed up content.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •