1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    26
    Vote Rating
    0
    rreckel is on a distinguished road

      0  

    Default [FIXED] BorderLayout north and south regions wrong when using percentages

    [FIXED] BorderLayout north and south regions wrong when using percentages


    I have a strange behaviour of the BorderLayout when using percentages:

    When I resize the Browser, the north and south panels resize depending of the width of the browser window (instead of it's height).

    The following line calculates the size of the region in BorderLayout.java:

    Code:
    float s = data.size < 1 ? data.size * rect.width : data.size;
    Souldn't the rect.height be used?

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,241
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Good catch. The fix is in SVN.

  3. #3
    Ext User
    Join Date
    May 2008
    Posts
    11
    Vote Rating
    0
    goodwrench is on a distinguished road

      0  

    Default


    BorderLayout does not size elements without specifying the size in pixels or percentages. Can the code be updated to use the child element's actual size as well? The can be done by setting the BorderLayoutData.size to 0 and interpreting it in the BorderLayout.onLayout method.
    One typical use case can be an application that looks like the MyGWT explorer - multiple sections with the header on the top. Explorer's code sets the absolute size of the header in pixels, which is not a right thing to do, I believe.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar