Hi there. Thank you for bringing this up in the mailing list (we **do not** monitor stackoverflow).
Do I understand it correctly from this stackoverflow posting that the problem is a momentary adjustment of the columns when the vertical scroll bar appears? And that it works correctly otherwise? If that's the case, yes - this is the expected behavior, at least given the current design of the TableView skin. If one adds a change listener to, let's say, the last column, one will see three updates: 1. in TableColumnHeader.doColumnAutoSize() as a response to setting the scene 2. TableColumnHeader.resizeColumnToFitContent(), called by TableViewSkinBase.updateContentWidth() as a response to Scene.doLayoutPass() 3. TableView.setContentWidth() as a response to VirtualFlow.computeBarVisibility() when it decides the vertical scroll bar needs to be shown. What I can't tell is whether steps 2 and 2 can be combined - in other words, whether it is possible to know that the vertical scroll bar needs to be shown before the layout pass is done. I am sure it can be in the case of the fixed row height, but if the row heights depend on the content width the things might get complicated. If it can, we can try to investigate, though it will be a low priority enhancement (the table does work correctly save for a momentary flicker). I am going to create a JBS ticket https://bugs.openjdk.org/browse/JDK-8329104 to investigate. Cheers, -andy From: openjfx-dev <[email protected]> on behalf of Mads <[email protected]> Date: Tuesday, March 26, 2024 at 05:58 To: [email protected] <[email protected]> Subject: JavaFX TableView text in the cells of the columns seems to jump Please see this Stack Overflow post where I have tried my best to document what is going on: https://stackoverflow.com/questions/77369768/javafx-tableview-text-in-the-cells-of-the-columns-seems-to-jump Seems to be an issue with CONSTRAINED_RESIZE_POLICY_ALL_COLUMNS when drawing the table for the first time and when vertical scrollbar is added? Is this how it is intended to be? Regards
