Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Floating panel in GWT

Tags:

css

gwt

I'm developing application with GWT 2 and would like to add float panel that stick to the bottom of the screen (not page, like chat panel in facebook). What is the best way to make that kind of panel?

like image 418
Maksim Avatar asked Dec 07 '25 06:12

Maksim


1 Answers

If I understood you correctly, you should apply the style below to a Panel (any basic Panel should do: FlowPanel, HTMLPanel, etc) and add it to the body (it doesn't have to be <body> but we know that it's always there and won't be removed ;)) via RootPanel.get().add(fixedPanel);

position: absolute; /* Or fixed - depends on what you want */
right: 0; /* The part that puts the Panel in bottom right of the page/client area */
bottom: 0;
like image 58
Igor Klimer Avatar answered Dec 08 '25 21:12

Igor Klimer