rreckel
2 May 2008, 5:38 AM
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:
float s = data.size < 1 ? data.size * rect.width : data.size;Souldn't the rect.height be used?
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:
float s = data.size < 1 ? data.size * rect.width : data.size;Souldn't the rect.height be used?