default column size issue [message #1716700] |
Mon, 07 December 2015 10:53  |
Eclipse User |
|
|
|
I have a strange problem when creating a table where columns width are set in percentages:
bodyDataLayer = new DataLayer(bodyDataProvider);
bodyDataLayer.setColumnWidthByPosition(0, 34);
bodyDataLayer.setColumnWidthByPosition(1, 33);
bodyDataLayer.setColumnWidthByPosition(2, 33);
bodyDataLayer.setColumnPercentageSizing(true);
Video is attached, also here:
https://drive.google.com/file/d/0B2Ajd8pcJvUjbnNDUGUyT1pDWEU/view?usp=sharing
After creation of a table the columns do no grab 100% of space and there is a bit of horizontal space left. As soon as I resize in vertical direction, the columns correctly span the whole horizontal space. After some debugging I can see there is something strange with the size calculation. In particular in function DataLayer::doCommand() clientAreaResizeCommand.getCalcArea().width returns the initially incorrect size (off by 15) , and the value jumps by 15 straight after resize event. Am I doing something wrong? Or is it a bug?
[Updated on: Mon, 07 December 2015 11:42] by Moderator
|
|
|
|
|
|
|
|
|
|
Re: default column size issue [message #1717303 is a reply to message #1717161] |
Fri, 11 December 2015 08:50  |
Eclipse User |
|
|
|
Hi, yes it should be easy, I'll definitely try, the thing is that I don't use windows for development, so I have only a minimal ad-hoc build environment on local VM. For now we decided to use officially available builds and just get rid off percentage sizing.
|
|
|
Powered by
FUDForum. Page generated in 0.04580 seconds