如何设置弹出窗口在GWT的顶部始终可见 [英] How to set a Popup to be always visible on the top in GWT

查看:85
本文介绍了如何设置弹出窗口在GWT的顶部始终可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个加载弹出窗口,我需要在页面顶部显示,即使用户向下滚动。



到目前为止我尝试的是设置弹出位置如下所示:

pre $ setPopupPosition(Window.getClientWidth()/ 2,0);

弹出窗口显示在绝对顶端。

解决方案

解决方案适用于我

  setPopupPosition(Window.getClientWidth ()/ 2,Window.getScrollTop()); 


I have a loading popup that I need to display on the top of the page, even if the user scroll down.

What I tried so far is to set the popup position as follows

setPopupPosition(Window.getClientWidth()/2 , 0);

The popup shows up on the absolut top.

解决方案

The solution that worked for me is this

 setPopupPosition(Window.getClientWidth()/2 , Window.getScrollTop());

这篇关于如何设置弹出窗口在GWT的顶部始终可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆