2016-05-25 58 views
0

我想调整我的htmlDialogBox的宽度。这是我现在拥有的。我的一半html被切断。我想在htmlDialogBox中显示整个html。GWT htmlDialogBox:如何将大小设置为更宽的宽度

GWT版本:2.8.0-SNAPSHOT

verticalPanel = new VerticalPanel(); 
    verticalPanel.setSpacing(0); 

    setWidget(verticalPanel); 
    verticalPanel.setSize("100%","100%"); 
    scrollPanel = new ScrollPanel(); 
    verticalPanel.add(scrollPanel); 

    htmlDialogBox = new HTML(); 
    verticalPanel.add(htmlDialogBox); 
    scrollPanel.setWidget(htmlDialogBox); 

    htmlDialogBox.setSize("100%", "100%"); 
    htmlDialogBox.setHTML(html); 
    setGlassEnabled(true); 
    setAnimationEnabled(true); 
    setPopupPosition(ClientUtils.DIALOG_X_POSITION,ClientUtils.DIALOG_Y_POSITION); 
    show(); 

回答

0

我找到我自己的答案。

change setAnimationEnabled(true); setAnimationEnabled(false);

相关问题