为什么 SlickGrid 中的最后一列仅在 Firefox 中才会出现在视图之外(或进入下一行)?

发布于 2024-09-14 04:54:59 字数 265 浏览 3 评论 0原文

由于某种原因,我的一些 SlickGrid 中的最后一列超出了视图范围或进入了下一行。调整我的容器和列的宽度,或者从我的网站中删除所有其他 CSS,并不能解决这个问题。看起来由于填充和其他类似的事情,网格的画布元素对于 Firefox 来说太薄了 1 像素。我可以通过更改 slickgrid 中的 setCanvasWidth 来使其工作,以便它在尝试设置的宽度上添加 1。

不过,我在任何 SlickGrid 演示中都没有遇到过这种情况。但我并没有做任何不寻常的事情。有什么想法可能会发生什么吗?

For some reason, the last column in some of my SlickGrids is wrapping out of view or into the next row. Playing with the widths of my container and columns, or removing all the other CSS from my site, doesn't fix it. It seems like because of padding and other such things the canvas element of the grid is 1 pixel too thin for Firefox's liking. I was able to get it working by changing the setCanvasWidth in slickgrid so that it adds 1 to the width that's trying to be set.

I don't experience this on any of the SlickGrid demos though. But I'm not doing anything unusual. Any ideas what could be happening?

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

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

发布评论

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

评论(2

等你爱我 2024-09-21 04:54:59

重置浏览器文本缩放级别。

Reset the browser text zoom level.

余罪 2024-09-21 04:54:59

我遇到了同样的问题,但必须更改 slick.grid.css 中的 .grid-canvas 宽度,因为默认为 500px。 CSS 现在是

.grid-canvas {
    position: relative;
    outline: 0;
    width: 100% !important;
}

I had the same problem, but did have to change the .grid-canvas width in slick.grid.css as this was defaulting to 500px. CSS is now

.grid-canvas {
    position: relative;
    outline: 0;
    width: 100% !important;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文