2016-05-25 11 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

私は自分の答えを見つけます。

変更setAnimationEnabled(true); setAnimationEnabled(false)に設定します。

関連する問題