fix(desktop): 修复 JCEF 首帧可见区域时序 - #21
Closed
generalio wants to merge 1 commit into
Closed
Conversation
Owner
Author
|
该草稿 PR 的源分支不符合仓库命名门禁,已迁移至 generalio/fix/desktop-visible-layout 并重新创建 PR。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
修复 Compose Desktop 的 SwingPanel 初始布局中组件尺寸已就绪、实际可见裁剪区仍为零时,JCEF 过早以无原生父窗口路径创建,导致页面必须拖动或缩放窗口后才显示的问题。
改动内容
平台影响
验证命令与结果
风险与兼容性
无公共 API 变更。浏览器会等待 Swing 实际可见区域有效后创建,避免无父窗口创建;若宿主始终未形成可见区域,浏览器将保持等待,这是正确的生命周期约束。JS 桥、Cookie、文件访问、外部导航策略均未修改。
文档变更
已更新相关内部中文 KDoc;无需更新 README。