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.
我正在使用List内部和AutoSizer动态高度,并使用rowHeight. 我的用例中的行需要用省略号渲染并在单击它时展开。
List
AutoSizer
rowHeight
我想知道rowHeight一旦行已经被渲染,如何动态设置?
这是一个做类似事情的例子(这里是源代码)。关键部分在这里:
// When height changes externally, let List know to reset its cached size List.recomputeRowHeights() List.forceUpdate()