文本编辑期间 Nscell 大小不随行高增加
我的 NSTableView 有可变高度的行。完成单元格编辑后以及调整列/表大小期间/之后,行会正确调整大小。当用户在文本单元格中键入内容时,行也会正确调整大小。
但是,在编辑过程中单元格本身不会调整大小以匹配行的高度。有人对此有什么想法吗? 此屏幕截图中发生了一次最终编辑已经(这就是文本区域大于 1 行的原因),但当前单元格中有足够的文本来占大约 5 行,因此高度该行的内容与应显示的内容不匹配。
My NSTableView has variable height rows. The rows correctly resize after an edit of a cell has been completed, and during/after resizing the column/table. The Row also correctly resizes while a user is typing into the text cell.
However, the cell itself does NOT resize during editing to match the height of the row. Does anyone have any ideas on this? In this screenshot one end-edit has occurred already (which is why the text area is larger than 1 line) but there is currently enough text in the cell to account for about 5 lines, thus the height of the row is not matching what should be displayed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望文本视图和单元格自动缩放,则必须设置它们的自动调整大小。
看起来
Tag Name
列中的单元格已正确设置为调整大小,但value
列中的单元格或文本视图尚未设置为调整大小。检查 Interface Builder 中的座位。Both the textview and the cell have to have their autoresize set if you want them to automatically scale.
It looks like the cells in the
Tag Name
column are properly set to resize but that either the cell or the textview in thevalue
column has not been. Check the sittings in Interface Builder.