From dae724b1d4a5be7c82e77f84680e13abaac3ddfd Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 10 Mar 2020 18:42:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=89=E5=8D=93?= =?UTF-8?q?=E8=B0=83=E7=94=A8=20setSoftinputTemporary=20=E5=90=8E=20adjust?= =?UTF-8?q?Resize=20=E9=85=8D=E7=BD=AE=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/mixins/keyboard.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/view/mixins/keyboard.js b/src/core/view/mixins/keyboard.js index 632652deab..2d706bdfa0 100644 --- a/src/core/view/mixins/keyboard.js +++ b/src/core/view/mixins/keyboard.js @@ -60,12 +60,9 @@ export default { plusReady(() => { const currentWebview = plus.webview.currentWebview() const style = currentWebview.getStyle() || {} - if (style.softinputMode === 'adjustResize') { - return - } const rect = this.$el.getBoundingClientRect() currentWebview.setSoftinputTemporary && currentWebview.setSoftinputTemporary({ - mode: this.adjustPosition ? 'adjustPan' : 'nothing', + mode: style.softinputMode === 'adjustResize' ? 'adjustResize' : (this.adjustPosition ? 'adjustPan' : 'nothing'), position: { top: rect.top, height: rect.height + (Number(this.cursorSpacing) || 0) -- GitLab