-
7 Dec 2009 6:22 AM #1
[FIXED][GXT 2.1] BorderLayoutData size not treated as pourcentage.
[FIXED][GXT 2.1] BorderLayoutData size not treated as pourcentage.
Hi,
Detailed description of the problem
It seems the size of the BorderLayoutData is not treated as pourcentage.
GXT version
GXT 2.1.1,GWT 2.0
Host mode / web mode / both
Both
Browser and version
Firefox 3.5
IE 8
Chrome 4
Operating System
WinXP SP3
Sample code
No need, the explanation below are enough explicit, as the source code talk by itself.
The javadoc says that
,Code: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 beCode: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.Code:float s = data.getSize() <= 1 ? data.getSize() * size.height : data.getSize();
Thank for fixing the bug.
Regards.Last edited by mtarantini; 6 Jan 2010 at 5:35 AM. Reason: Formatting, following the GuideLine.
-
8 Dec 2009 11:19 PM #2
-
13 Jan 2010 10:49 PM #3
-
20 Jan 2010 9:35 PM #4
This bug is fixed in the releases/2.1 branch and is now available in the 2.1.1-beta release available here.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote