On Tue, 29 Oct 2019 13:19:27 GMT, Hadzic Samir <shad...@openjdk.org> wrote:
> On Wed, 9 Oct 2019 16:01:38 GMT, Kevin Rushforth <k...@openjdk.org> wrote: > >> On Wed, 9 Oct 2019 12:26:31 GMT, Hadzic Samir <shad...@openjdk.org> wrote: >> >>> On Mon, 7 Oct 2019 10:22:11 GMT, Jeanette Winzenburg <faste...@openjdk.org> >>> wrote: >>> >>>> On Fri, 4 Oct 2019 06:13:48 GMT, Hadzic Samir <shad...@openjdk.org> wrote: >>>> >>>>> Allright, this is a fix for JDK-8207957 >>>>> >>>>> ---------------- >>>>> >>>>> Commits: >>>>> - 969ebb51: Fixing TableColumnHeaderTest >>>>> - 9d379619: Removing Tablecolumnbasehelper >>>>> - 4fe020fc: Fix javadoc for TableColumnHeader >>>>> - c422c80f: Minor modification and uni test added. >>>>> - b2bdfb5b: Change resizeColumn to protected without static in order to >>>>> be able to override >>>>> - 3b9b7903: Second option for resizeColumnToFitContent in >>>>> TableColumnHeader >>>>> - d91c56e5: First attempt to extract resizeColumnToFitContent >>>>> >>>>> Changes: https://git.openjdk.java.net/jfx/pull/6/files >>>>> Webrev: https://webrevs.openjdk.java.net/jfx/6/webrev.00 >>>>> Issue: https://bugs.openjdk.java.net/browse/JDK-8207957 >>>>> Stats: 523 lines in 4 files changed: 330 ins; 187 del; 6 mod >>>>> Patch: https://git.openjdk.java.net/jfx/pull/6.diff >>>>> Fetch: git fetch https://git.openjdk.java.net/jfx pull/6/head:pull/6 >>>> >>>> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableColumnHeader.java >>>> line 600: >>>> >>>>> 599: * expensive if the number of rows is large. Subclass can either >>>>> call this method or override it (no need to call >>>>> 600: * {@code super()}) to provide their custom algorithm. >>>>> 601: * >>>> >>>> see >>>> https://github.com/javafxports/openjdk-jfx/pull/289#discussion_r245482213 >>>> - I think I made a suggestion (that probably needs some native speaker's >>>> fine tuning :) >>> >>> Allright @kleopatra , I have indeed removed the TableColumn argument. It is >>> clearer now that we are resizing the TableColumn of the header. >>> >>> I have updated the description a bit but really I'm really not good at >>> method description so I'm open to all suggestions.. >> >> A Draft CSR was filed here: >> [JDK-8215554](https://bugs.openjdk.java.net/browse/JDK-8215554). It will >> need to be updated once the API review is complete. > > Do you think this looks good now @kleopatra @nlisker ? Yes I was waiting for the final 'go'. I will update it asap, thanks Le ven. 1 nov. 2019 à 09:49, Jeanette Winzenburg <notificati...@github.com> a écrit : > *@kleopatra* commented on this pull request. > ------------------------------ > > In > modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableColumnHeader.java > <https://github.com/openjdk/jfx/pull/6#discussion_r341492115>: > > > + * Resizes this {@code TableColumnHeader}'s column to fit the width of > > its content. > + * > + * @implSpec The resulting column width for this implementation is the > maximum of the preferred width of the header > + * cell and the preferred width of the first {@code maxRow} cells. > + * <p> > + * Subclasses can either use this method or override it (without the > need to call {@code super()}) to provide their > + * custom implementation (such as ones that exclude the header, exclude > {@code null} content, compute the minimum > + * width etc.). > + * > + * @param maxRows the number of rows considered when resizing. If -1 is > given, all rows are considered. > + * @since 14 > > looks good to me :) You would have to update the crs eventually, right? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/openjdk/jfx/pull/6?email_source=notifications&email_token=ACEL43PISZ6DM46QLSYDLR3QRPURHA5CNFSM4I5EYYAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCJ7XYEQ#discussion_r341492115>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ACEL43PROHPIZYN7WA5M6KDQRPURHANCNFSM4I5EYYAA> > . > PR: https://git.openjdk.java.net/jfx/pull/6