2016-05-25 56 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);

相關問題