RFR: 8089280: horizontal scrollbar should never become visible in TableView with constrained resize policy

Kevin Rushforth kcr at openjdk.org
Fri Sep 9 21:31:51 UTC 2022


On Fri, 9 Sep 2022 21:13:25 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> Modified the tree/table view internals to suppress the horizontal (a.k.a. breadth in VirtualFlow) scroll bar when a constrained resize mode is in effect.  This change complements fixes added in [JDK-8089009](https://bugs.openjdk.org/browse/JDK-8089009) without addressing other bugs found in https://bugs.openjdk.org/browse/JDK-8292810
> 
> This PR might need a CSR since a public method is added to VirtualFlow:
> 
> 
>     /**
>      * Suppresses the breadth bar from appearing.
>      */
>     public void setSuppressBreadthBar(boolean suppress) {
>         this.suppressBreadthBar = suppress;
>     }

This should be done without adding any new public API, since that is beyond the scope of a simple bug fix. Adding new public API has implications that are better discussed when adding the additional functionality being worked on in [JDK-8293119](https://bugs.openjdk.org/browse/JDK-8293119).

Btw, in addition to the new `VirtualFlow` method, this PR adds `TableViewSkinBase::updateSuppressBreadthBar` to the public API. Both look like implementation details.

-------------

PR: https://git.openjdk.org/jfx/pull/894


More information about the openjfx-dev mailing list