Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
SplitPane : Accessing the splitter position
Hi,
I have a requirement to hide the first component when the splitter bar was double clicked, and to restore it on a subsequent double click. Unfortunately, the SplitPanel does not provide getters for the splitter position, meaning I cannot restore the splitter to it's original position.
In addition, when pixels were being used for the splitter position, the position variable was not being updated on the server side component when the splitter bar was resized.
I have modified SplitPanel/VSplitPanel to address these issues, created Ticket #4460, and attached a (6.3) patch to that ticket.
I hope the patch - or something similar - can be incorporated into the final release of 6.3
Cheers,
Charles.
Charles Anthony: In addition, when pixels were being used for the splitter position, the position variable was not being updated on the server side component when the splitter bar was resized.
Darn, that's my fault, sorry.
Thanks for the report and patch, looked good IMO. Can most likely be included in the final 6.3.
I hope the patch - or something similar - can be incorporated into the final release of 6.3
Done. Patch looked too good to pass by, incorporated into both 6.2 and 6.3 branches.
Thanks again!