NSScrollview、Webview与Java集成时调整大小问题

发布于 2024-11-09 12:23:57 字数 309 浏览 5 评论 0原文

我正在开发一个与 Java 环境集成的桌面框架,即该框架创建一个添加到 Java 视图的 NSView。

框架中创建的视图将scrollview作为其子视图。 NSView 和scrollview 都有自动调整大小掩码作为NSViewWidthResizable 和NSViewHeightResizable。

当我尝试在 Cocoa 示例中调整大小时,这些视图的大小调整工作正常。但是,当调整 Java 视图大小时,滚动视图(文档视图)不会正确刷新。仅当滚动视图/网络视图(具有文档视图)作为子视图时才存在该问题。

这是什么原因呢?我该如何解决这个问题?

I am developing an Desktop framework that is integrated with Java environment i.e the framework creates an NSView that is added to the Java view.

The view created in framework has scrollview as its subview. Both NSView and scrollview has autoresizing mask as NSViewWidthResizable and NSViewHeightResizable.

When I try resizing in Cocoa sample resizing of these views are working fine. But, when Java view is resized, the scrollview (document view) is not refreshed properly. The problem exists only if scrollview/webview (which has document view) as subview.

What is the reason for this? How do I solve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文