From cd3f7bf01839600e6fd8de28a2e901ef2d562cea Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 13 Feb 2021 21:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/controller/controller.resizer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/controller/controller.resizer.js b/src/core/controller/controller.resizer.js index 4ffd40be6f..bb095e55c5 100644 --- a/src/core/controller/controller.resizer.js +++ b/src/core/controller/controller.resizer.js @@ -18,7 +18,11 @@ BI.ResizeController = BI.inherit(BI.Controller, { self._resize(ev); // } }, 30); - BI.Widget._renderEngine.createElement(_global).resize(fn); + if ("onoreientationchange" in window) { + window.onoreientationchange = fn; + } else { + BI.Widget._renderEngine.createElement(_global).resize(fn); + } }, _resize: function (ev) {