Spark 数据网格的最后一列未调整大小

发布于 2024-12-20 21:16:22 字数 268 浏览 6 评论 0原文

我在我的移动应用程序中使用了 Spark DataGrid。我的问题是我的 Spark 数据网格的最后一列没有调整到网格的宽度。例如,我的 Spark DataGrid 的宽度是 500,我有 4 列,每列宽度大小为 100。四列根据其大小在数据网格中放置。但 datagrid 中的最后 100 个像素看起来像空白区域。在高级 datagrid 和 mx datagrid 中,列的大小会自动调整为网格的宽度。

请帮助我在 Spark DataGrid 中实现这一目标。

谢谢 文加泰什

i have used spark datagrid for my mobile application . my problem is last column of my spark datagrid is not resizing to the grid's width. for example, my spark datagrid's width is 500,and i have 4 columns of width size 100 each. four columns are places as per their size in the datagrid. but the last 100 pixels in datagrid looks like empty space.In advanced datagrid and mx datagrid , the columns are automatically resized to the grid's width.

please help me to achieve this, in the spark datagrid.

thanks
vengatesh

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

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

发布评论

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

评论(1

痴情 2024-12-27 21:16:22

这是 sprk DataGrid 问题。为了避免这种情况,您需要监听来自 DataGrid 的“resize”事件,并在处理程序中将最后一列的宽度设置为 NaN。

    protected function dataGridResizeHandler(event:ResizeEvent):void
    {
        lastColumn.width = NaN;
    }

这对我有用。

This is sprk DataGrid issue. To avoid it you need to listen event "resize" from DataGrid and in handler set last column's width to NaN.

    protected function dataGridResizeHandler(event:ResizeEvent):void
    {
        lastColumn.width = NaN;
    }

That works for me.

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