Reputation: 759
Can we get width of the horizontal split panel in pixels. Also to get the width of individual right and left side width in a split panel?
Upvotes: 1
Views: 275
Reputation: 4275
The SizeReporter add-on allows you to get the pixel sizes of any Component in the UI: https://vaadin.com/directory/component/sizereporter. If you add a split position change listener to the HorizontalSplitPanel, you can get the split position and unit from the event; if the unit is "%", calculating the pixel size from the size of the parent should be a matter of a simple calculation.
Upvotes: 1