Floating Panel in GWT

I am developing an application with GWT 2 and I want to add a floating-point panel that is attached to the bottom of the screen (and not a page, such as the chat panel in facebook). What is the best way to create such a panel?

+3
source share
3 answers

If you have understood correctly, you have to apply a style to the lower panel (any base panel should do: FlowPanel, HTMLPaneletc.) and add it to the body (it should not be <body>but we know that it is always there and will not be removed;) ) acrossRootPanel.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;
+4
source

This can be done by adding the CSS attribute position: fixedto the div request.

: http://www.quirksmode.org/css/position.html

+2

I think you can do this with CSS. All you need is any GWT panel, and then use it with CSS. Check out http://www.lwis.net/journal/2008/02/08/pure-css-sticky-footer/

0
source

Source: https://habr.com/ru/post/1741008/


All Articles