Vaadin模态子窗口组件抖动,好像不活动

时间:2013-11-19 16:45:44

标签: window vaadin

Vaadin 6.8.13

无论我的程序在哪里,我都会在我的应用程序中调用任何类型的模态子窗口,子窗口会抖动,好像它不活动一样。我仍然可以选择表格中的组件,并像处理它一样做所有事情。我也在几个不同的浏览器中测试过它。我没有做任何我知道会改变配色方案或修改子窗口的事情。

我过去遇到过一些问题,我点击打开一个子窗口,然后打开两个子窗口或者更多,我必须关闭它们,但最重要的一个是焦点。在这个实例中我找不到任何其他子窗口。这在我的程序中是不变的。

示例代码:

    final Window subwindow = new Window(sectionName);
    subwindow.setModal(true);
    subwindow.setImmediate(true);

    final VerticalLayout windowLayout = (VerticalLayout) subwindow.getContent();
    windowLayout.setMargin(true);
    windowLayout.setSpacing(true);
    windowLayout.setSizeUndefined();

    <Adding content to subwindow>

    getWindow().addWindow(subwindow);
    subwindow.focus();

它比主应用程序窗口略微抖动,但它并不清楚它应该是什么。 (我试图张贴图片,但我的名声不够高)

有关在何处查看或可能导致此行为的任何建议?

更新: 我在窗口上运行调试工具并获得以下信息:

-com.vaadin.terminal.gwt.client.ui.VWindow id=PID441 immediate=true caption=Stakeholder Section name= theme=phantom-theme modal=true resizable=true sub=true
-variables
tabindex=-1
scrollLeft=0
scrollTop=0
positionx=606
positiony=376
close=false
-com.vaadin.terminal.gwt.client.ui.VVerticalLayout id=PID442 margins=15 spacing=true alignments={PID443:34,} expandRatios={}
-com.vaadin.terminal.gwt.client.ui.VVerticalLayout id=PID443 margins=0 spacing=true alignments={PID444:48,PID448:34,} expandRatios={}
-com.vaadin.terminal.gwt.client.ui.VTabsheet id=PID444 immediate=true
-variables
selected=1
-tabs
-tab caption=Main key=1 selected=true
-com.vaadin.terminal.gwt.client.ui.VVerticalLayout id=PID445 margins=14 alignments={} expandRatios={}
-com.vaadin.terminal.gwt.client.ui.VHorizontalLayout id=PID446 margins=0 spacing=true alignments={} expandRatios={}
-com.vaadin.terminal.gwt.client.ui.VTreeTable id=PID447 height=44px style=striped animate=true selectmode=none cols=3 rows=1 firstrow=0 totalrows=1 pagelength=2 colheaders=true colfooters=false vcolorder={0:1,1:2,2:3,} pb-ft=0 pb-l=0
-variables
firstvisible=0
firstvisibleonlastpage=-1
sortcolumn=1
sortascending=true
reqrows=-1
reqfirstrow=-1
-rows
-tr key=1 depth=0 style-1=normal style-2=red style-3=yellow
Stakeholder Section
4
8
-visiblecolumns
-column cid=1 caption=Section fcaption= sortable=true
-column cid=2 caption=Johnny Importante fcaption= sortable=true width=119
-column cid=3 caption=Susie Tech fcaption= sortable=true width=119
-com.vaadin.terminal.gwt.client.ui.VHorizontalLayout id=PID448 margins=0 spacing=true alignments={PID449:10,} expandRatios={}
-com.vaadin.terminal.gwt.client.ui.VButton id=PID449 style=small default caption=Close
-variables
state=false

我想知道“州=假”是否可能有关系?

更新2: 看起来这只会影响Safari中的观看效果。我曾尝试使用FireFox和IE,但没有遇到过这个问题。我已经清除了Safari中的缓存,但没有帮助。

0 个答案:

没有答案