NSScrollview、Webview与Java集成时调整大小问题
我正在开发一个与 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论