JDK-8088010 : TableView.CONSTRAINED_RESIZE_POLICY only works from the second table
Type:Bug
Component:javafx
Sub-Component:controls
Affected Version:fx2.1,7u6
Priority:P4
Status:Resolved
Resolution:Duplicate
Submitted:2012-07-12
Updated:2023-01-05
Resolved:2023-01-05
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Run the Attachment, and observe, all are the same table, but the column size is correct only from the second table
Comments
This issue is effectively a duplicate of JDK-8293119.
With JDK-8293119, individual column resize policies do not share common fields, so each Tree/TableView is getting resized correctly.
05-01-2023
I am unable to reproduce the issue (as described) in jfx18.
It does, however, exhibit the same failure as JDK-8137244 since all the tables are empty.
31-08-2022
The earlier failure (in fx2.1) might be due to the fact that Tree/TableView.CONSTRAINED_RESIZE_POLICY.isFirstRun is effectively a singleton, so the first resizing operation affected subsequent ones, even for other tables. The resize algorithm was fixed some time in the past, so it cannot be reproduced with the test code provided.
31-08-2022
if var contentWidth in TableView is public ( getContentWidth() -> read only ) is possible to create my own version (if the correction is not possible for version 2.2)
23-07-2012
possible correction in path
23-07-2012
if the variable 'private boolean isFirstRun = false;' is removed (considers it always false) it's working.