positioning problem when implementing ICEpush

Hi everybody,

I am working with the addon ICEpush and it already works fine. But I have a prblem with the positioning of other components when I use ICEpush.
I have a servlet with a table at the top of the browser. When I am implementing ICEpush:

pusher = new ICEPush();
mainWindow.addComponent(pusher);

the table is shifted to the bottom. Also the table is minimized the first time data are created. This is really disturbing because you only see about 5 entries of the table even when I set the size to 100%.

Here a example to show you what I mean:

Broser without push:


Table:

|

|

|


Broser with push:


free space

Table:

|

|


thx for your help :slight_smile:

I found the problem about the minimization…I added icepush accidentaly two times to the mainWindow. Therefore forget my problem about the minimization, but I still have the problem that the ICEpush is “stealing” about have of the space of the browser window

The key is layout.setExpandRatio(pusher, 0) - your window has by default a VerticalLayout which divides free space evenly for all components, even invisible ones. If you are not setting the layout explicitly, use window.getContent() and cast it to a VerticalLayout.

EDIT:
This thread
is about the same issue.