iOS(statusbar): `resizeWebView` shifts the web view down in resizable iPadOS 26 windows (`overlaysWebView: true`)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Issueでは StatusBar.resizeWebView() がエントリーポイントとして示され、オーバーレイモードのオフセット処理も含まれています。このメソッドと周辺のiOSステータスバーコードを読み、関連するiOSテストを確認するか、上部のセーフエリアが10 ptあるサイズ変更可能なウィンドウのテストを追加してください。サイズ変更後もオーバーレイモードでWebViewがy = 0に保たれ、その上にバーが残らなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Plugin version: @capacitor/status-bar 8.0.4 (same code on 8.0.5 nightly), @capacitor/ios 8.6.0, iPadOS 26, app built with the iOS 26 SDK.
What happens
With overlaysWebView: true, after resizing the app window on iPad (windowed apps / Stage Manager) to a window that does not reach full height, a bar appears at the top of the window above the web view (black: the window background).
Cause
StatusBar.resizeWebView() runs 0.1 s after every viewWillTransition and, in overlay mode, does:
let safeAreaTop = webView.safeAreaInsets.top
if statusBarHeight >= safeAreaTop && safeAreaTop > 0 {
webViewFrame.origin.y = safeAreaTop == 40 ? 20 : statusBarHeight - safeAreaTop
}
In a resizable iPadOS 26 window, statusBarManager.statusBarFrame stays 32 pt, while the window's top safe area is 10 pt for windows that are not full height (32 pt only at full height). The web view is moved to y = 22 and shortened by 22 pt. Measured on device:
window.frame=(0, 0, 1296, 787.5) window.safeArea.top=10 statusBarFrame.height=32
webView.frame (0, 0, 1296, 787.5) -> (0, 22, 1296, 765.5)
Proposed fix
In overlay mode the web view should cover the view controller's whole area; the page handles safe areas itself. The offset only served the pre-iOS 13 double-height status bar, which no supported iOS version has. Set origin.y = 0 for overlay mode.
- 主要言語
- Java
- スター
- 688
- フォーク
- 690
- 平均マージ
- 16時間 15分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/capacitor-plugins のほかの issue
-
platform: android
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/capacitor-plugins#2647 ·
メンテナーはふだん 1 日以内に返信
-
platform: android
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/capacitor-plugins#2646 ·
メンテナーはふだん 1 日以内に返信
-
platform: android
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ionic-team/capacitor-plugins#2635 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ionic-team/capacitor-plugins#2627 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ionic-team/capacitor-plugins#2616 ·
メンテナーはふだん 1 日以内に返信
ionic-team/capacitor-plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
federicoiosue/Omni-Notes#1044 ·
-
Bug
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Terraform releases proxy leaves a temp folder behind on every cache refresh対応中かも @dhananjay6561 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
terrakube-io/terrakube#4069 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信