Thank you for reporting this bug. We will make it our priority to review this report.
[FIXED][GXT 2.1] BorderLayoutData size not treated as pourcentage.
Detailed description of the problem
It seems the size of the BorderLayoutData is not treated as pourcentage.
GXT 2.1.1,GWT 2.0
Host mode / web mode / both
Browser and version
No need, the explanation below are enough explicit, as the source code talk by itself.
The javadoc says that
Values of 1 or less are treated as percentages
but the BorderLayout doesn't treat the 1 as %.
In the BorderLayout Class, we find (line 295, 332,371,441).
wheras it should be
float s = data.getSize() < 1 ? data.getSize() * size.height : data.getSize();
I've just try by changing the < by <=, and its works as It should be.
float s = data.getSize() <= 1 ? data.getSize() * size.height : data.getSize();
Thank for fixing the bug.
Last edited by mtarantini; 6 Jan 2010 at 5:35 AM.
Reason: Formatting, following the GuideLine.
So, when this will be fixed in SVN ?
Sencha - GXT Dev Team
This bug is fixed in the releases/2.1 branch and is now available in the 2.1.1-beta release available here.