如何将 smartgwt 中的组件放置在嵌套布局内

发布于 2024-12-27 11:18:08 字数 198 浏览 3 评论 0原文

我有大约 20 个组件放置在表单和布局(水平和垂直)中。 它的结构就像 html 表格一样,有 colspan 和 rowspan 之类的东西。

外部网格正在授权,但主布局内的布局和组件没有反应
正确设置Height、setWidth、setColWidths。有些嵌套组件不反应,有些则...

如何正确地将组件放置在 smartgwt 中?

I've got about 20 components that are placed in forms and layouts (horizontal and vertical).
Its structure like the html table with something like colspan and rowspan.

Outer grid is authorizing but layouts and components inside main layout don't react to
setHeight, setWidth, setColWidths properly. Some nested components don't react, some does...

How to place components in smartgwt properly?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨后咖啡店 2025-01-03 11:18:08

我不确定我是否完全理解这个问题,但是当我第一次开始使用 smartgwt 时我也遇到了布局问题。事实证明,我需要将内部组件的宽度和/或高度设置为“*”,这导致我的内部组件“捕捉”到其容器提供的任何坐标。

I'm not sure I fully understand the problem but I had layout issues when I first started using smartgwt as well. It turned out that I needed to set my inner components widths and/or heights to "*" this caused my inner components to "snap" to any coordinates supplied by its container.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文