瀏覽代碼

Reverted change in how hack works (#12727, #12736)

The fix for Window slightly altered how the hack was done, breaking #12736

Change-Id: I2d33b45421c40ce011d2e728a573f7572e326c47
tags/7.1.8
Artur Signell 10 年之前
父節點
當前提交
c48c94dc23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      client/src/com/vaadin/client/Util.java

+ 2
- 2
client/src/com/vaadin/client/Util.java 查看文件

@@ -556,10 +556,10 @@ public class Util {
final String oldHeight = scrollable.getStyle().getHeight();

scrollable.getStyle().setWidth(110, Unit.PCT);
scrollable.getStyle().setHeight(110, Unit.PCT);
scrollable.getOffsetWidth();
scrollable.getOffsetHeight();
scrollable.getStyle().setProperty("width", oldWidth);
scrollable.getStyle().setHeight(110, Unit.PCT);
scrollable.getOffsetHeight();
scrollable.getStyle().setProperty("height", oldHeight);

// Restore the scroll position

Loading…
取消
儲存