am wondering, if there is a solution for shrinking a charts within browser window, i.a if i resize my browser window my application with highcharts do it well to, it's also resized to the browser window size, but if i shrink my browser window, the app with charts doesn't shrink in size to the browser window size, it only do it when refresh the whole web page, but i need it to be able to do it automatically when you shrink the browser window, the window content also shrinks to the browser sizes, am using java with UiBinder DockLayoutPanel inside RootLayoutPanel. Would be very thankful for any suggestions.
Without specific code examples a specific answer is difficult to give. But to react to browser resize you need to implement the onResize()
method. The layout panels you name call this method on children that implement the interface RequireResize
. So the panel with the chart should implement the onResize()
, and resize the chart. Make sure the parent tree of this widget all implement onResize()
or else the method won't be called.