RFR: 8251480: TableColumnHeader: calc of cell width must respect row styling [v2]
Marius Hanl
mhanl at openjdk.java.net
Mon Mar 28 09:22:49 UTC 2022
On Thu, 24 Mar 2022 04:57:27 GMT, Robert Lichtenberger <rlichten at openjdk.org> wrote:
>> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableColumnHeader.java line 650:
>>
>>> 648: }
>>> 649: Callback<TableView<T>, TableRow<T>> rowFactory = tv.getRowFactory();
>>> 650: TableRow<T> tableRow = rowFactory != null ? rowFactory.call(tv) : new TableRow<>();
>>
>> When there is no row factory, we probably should just return like in line 632-633?
>
> Unlike cell factory, which always has to be present, the row factory is optional and in fact most tables will not have a row factory. If we return in that case, the algorithm will no longer work for these tables.
> Compare with `javafx.scene.control.skin.TableViewSkin.createCell()`.
You are right, thanks.
-------------
PR: https://git.openjdk.java.net/jfx/pull/757
More information about the openjfx-dev
mailing list