Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 GXT 2.2.5
我想知道如何在 TreeGrid 中制作整齐的自动换行。我发现我应该给 whitespace: normal 以使文本换行。但是后来我遇到了糟糕的左边距问题,正如您在附图中看到的那样。
有任何想法吗?
提前致谢 :)
尝试使用空格:正常,将其添加到您的 css
.x-grid3-row { height: auto !important; }
我有另一个想法。您可以显示固定数量的文本字符,后跟省略号,而不是使文本在多行中流动。您可以使用以下样式来实现此目的:
white-space:nowrap; overflow:hidden; text-overflow:ellipsis;