
joywayerandClaude Opus 4.7
f4307ccc80
WebView 改全屏铺满(与 daoqi msext 同款),撤销 16:9 letterbox
用户反馈:现代 iPhone 横屏(19.5:9 比例)下 16:9 letterbox 出现明显
左右大黑边,与原项目视觉不一致。
调研 daoqi msext NewRootVC.m:256:实际用 CGRectMake(0, 0, DEVW, DEVH)
直接全屏 WKWebView,没有任何 letterbox。H5 viewport 自身处理设计稿
(1280×720)→ 设备实际宽高的伸缩。msext 上线多年用户已习惯此视觉。
改 WebContainerViewController + SubGameViewController 的 setupBridgedWebView:
- 去掉 16:9 aspect 约束 + 居中 + width/height max/fill 优先级方案
- 改为 top/bottom/leading/trailing 四 edge 直接撑满 view
文件头注释同步:从「16:9 letterbox」改为「全屏铺满」。
原 Design §6.3.5 的 letterbox 决策已被现网实测推翻,未来如某些 H5
页面需要恢复 letterbox 再单独抽 LetterboxLayout(YAGNI)。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-23 07:23:34 +08:00
..
2026-06-22 03:10:53 +08:00
2026-06-22 03:10:53 +08:00
2026-06-22 00:16:55 +08:00
2026-06-23 07:23:34 +08:00
2026-06-22 22:22:23 +08:00
2026-06-22 22:22:23 +08:00
2026-06-22 22:22:23 +08:00