Skip to content

Commit db36ccf

Browse files
committed
fix: avoid issues with virtual keyboard on ios devices
1 parent 2f06f2d commit db36ccf

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/main/src/Dialog.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ class Dialog extends Popup {
329329

330330
_show() {
331331
super._show();
332-
requestAnimationFrame(this._center.bind(this));
332+
requestAnimationFrame(() => {
333+
this._updateMediaRange();
334+
this._center();
335+
});
333336
}
334337

335338
onBeforeRendering() {

packages/main/src/Popup.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,6 @@ abstract class Popup extends UI5Element {
604604
if (this.isConnected) {
605605
this.setAttribute("popover", "manual");
606606
this.showPopover();
607-
608-
requestAnimationFrame(this._updateMediaRange.bind(this));
609607
}
610608
}
611609

0 commit comments

Comments
 (0)