Re: CellList inside a panel of 100% height

2015-02-26 Thread Magnus
On Wednesday, February 25, 2015 at 8:06:55 PM UTC+1, Jens wrote: > > The panel is located in an UIBinder with a HTMLPanel as root. So I used >> getParent().getOffsetHeight(). >> Any ideas why this is not exactly the client height? >> > > clientHeight includes padding > offsetHeight includes pa

Re: CellList inside a panel of 100% height

2015-02-25 Thread Jens
> > The panel is located in an UIBinder with a HTMLPanel as root. So I used > getParent().getOffsetHeight(). > Any ideas why this is not exactly the client height? > clientHeight includes padding offsetHeight includes padding, borders and scrollbars > And why does the panel with the CellLis

Re: CellList inside a panel of 100% height

2015-02-25 Thread tushar bhasme
I guess the height here is set to enable scrolling if data exceeds the given pixels. Thanks, Tushar Bhasme On Wed, Feb 25, 2015 at 11:26 PM, Magnus wrote: > Thank you very much! This works! > > I don't know why, but I the parent's height is too much, so that I have to > substract 10 pixels to

Re: CellList inside a panel of 100% height

2015-02-25 Thread Magnus
Thank you very much! This works! I don't know why, but I the parent's height is too much, so that I have to substract 10 pixels to make it fit. The panel is located in an UIBinder with a HTMLPanel as root. So I used getParent().getOffsetHeight(). Any ideas why this is not exactly the client hei

Re: CellList inside a panel of 100% height

2015-02-24 Thread Tushar Bhasme
table.setHeight(String.valueOf(Window.getClientHeight() - (the amount of px you want to leave from top)) + Unit.PX); Thanks, Tushar On Monday, February 23, 2015 at 8:48:34 AM UTC+5:30, Magnus wrote: > > Hi, > > consider the CellList example in GWT showcase: > > http://samples.gwtproject.org/samp

CellList inside a panel of 100% height

2015-02-22 Thread Magnus
Hi, consider the CellList example in GWT showcase: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellList The CellList in this example has a fixed height of 400 px. If you change it to 100%, the scrollbars are gone! (You can verify this right in the showcase example.). However