[pve-devel] [PATCH 3/4] add ie11 resize fix

Dominik Csapak d.csapak at proxmox.com
Thu Apr 14 10:55:56 CEST 2016


on ie11, the 'clip' setting will always be parsed to true
(because of weird calls to some functions which try to get
the clip setting at the wrong time, but only in ie11)

so instead of initSetting, we forceSetting the clip to false

if clip is true, it gets in the way of resizing

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
puh, that was not easy to debug, also the code
is not really wrong anywhere, but the weird circumstances
in ie11 trigger this
 debian/patches/fix-ie11-resize.patch | 11 +++++++++++
 debian/patches/series                |  1 +
 2 files changed, 12 insertions(+)
 create mode 100644 debian/patches/fix-ie11-resize.patch

diff --git a/debian/patches/fix-ie11-resize.patch b/debian/patches/fix-ie11-resize.patch
new file mode 100644
index 0000000..ae6872a
--- /dev/null
+++ b/debian/patches/fix-ie11-resize.patch
@@ -0,0 +1,11 @@
+--- a/pveui.js
++++ b/pveui.js
+@@ -115,7 +115,7 @@
+                 setTimeout(function() { window.scrollTo(0, 1); }, 100);
+                 UI.forceSetting('clip', true);
+             } else {
+-                UI.initSetting('clip', false);
++                UI.forceSetting('clip', false);
+             }
+ 
+             UI.setViewClip();
diff --git a/debian/patches/series b/debian/patches/series
index 11d048d..36c0b82 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 pveui.patch
 fix-base-css.patch
+fix-ie11-resize.patch
-- 
2.1.4




More information about the pve-devel mailing list