阅读背景:

JavaFX TableView scrollTo()导致错误的行开始编辑

来源:互联网 

I have an editable TableView with a button that adds a new row then calls table.edit() on the first column in that row. When a user wants to add a row that will be out of the viewport, what should happen is the table scrolls the new row within the viewport and starts editing. However, calling table.scrollTo(newRow) causes all sorts of buggy behavior. The row is brought into view, but only some of the time goes into editing. What seems to happen the most is the first row within the viewport starts editing rather than the newly added row. This happens on rows that would be added in view as well as rows that would be out of view. I have an editable TableView with a button that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: