[Bug]: iOS App WebView viewport shrinks after exiting fullscreen mode

オープン
#8,231 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
angular, ios, typescript

調査の方向性

リンクされている pannellum-ionic-capacitor-app をクローンし、一覧にある iOS の live-reload 手順を、フルスクリーンへの移行と終了まで実行します。その後、viewport のサイズの復元に関係する Capacitor iOS WebView とフルスクリーン処理を調査します。フルスクリーン終了後に、白または黒のバーが表示されず、viewport が元のサイズに戻れば完了です。

索引モデルが issue の本文から書いたものです。

説明

triage
Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.4.4
@capacitor/core: 7.4.4
@capacitor/android: 7.4.4
@capacitor/ios: 7.4.4

Installed Dependencies:

@capacitor/cli: 7.4.4
@capacitor/core: 7.4.4
@capacitor/android: 7.4.4
@capacitor/ios: 7.4.4

[success] iOS looking great! 👌
[success] Android looking great! 👌

Other API Details
npm --version output: 11.6.1
node --version output: v24.11.0
pod --version output: 1.16.2
Platforms Affected
  • iOS
  • Android
  • Web
Current Behavior

Viewport shrinks and shows white bars at top/bottom. The WebView doesn't properly recalculate viewport dimensions.

Expected Behavior

Viewport should return to original size without visual artifacts.

Project Reproduction

https://github.com/basha-tlab/pannellum-ionic-capacitor-app

Additional Information

Bug Description

When using fullscreen API (or libraries that use it like Pannellum.js) in a Capacitor iOS app, exiting fullscreen mode causes the viewport to shrink with white/black bars appearing at the top and bottom.

Environment

  • Capacitor Version: 7.4.4
  • Platform: iOS
  • **Framework:Ionic Angular
  • Device: iPhone 17
  • **iOS Version:26
  • **Xcode Version:

Steps to Run/Reproduce

1.Clone the repo.
2.Run the App (lwith live reload)
ionic cap run ios -l --external
3.Click on 'Go to Pannelum' button.
4.Navigates to 'Pannelum View Screen'
5.Click 'Open View' Button
6.This opens a Dialog with a 360 degree viewer.
7.Click on fullscreen icon button at top right.
8.This will put the app on Full Screen mode
9.Notice upon exiting the Full screen mode, by clicking 'X' button the view port on iOS app shrinks from both top and bottom

Image

Expected Behavior

Viewport should return to original size without visual artifacts.

Actual Behavior

Viewport shrinks and shows white bars at top/bottom. The WebView doesn't properly recalculate viewport dimensions.

// Or with libraries like Pannellum:
viewer.toggleFullscreen(); // Works fine on web, breaks on iOS Capacitor

主要言語
TypeScript
スター
17.1k
フォーク
1.3k
平均マージ
1日 22時間
マージ済み PR(30日)
26

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/capacitor のほかの issue

ionic-team/capacitor の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。