Skip to content
Commit 8fcd52f5 authored by Rani Hod's avatar Rani Hod Committed by Paul Donald
Browse files

luci-app-statistics: regenerate graphs on window resize



Currently graphs are redrawn only based on the refresh interval
(never or every 5/30/60 seconds).
Since the image size is calculated based on the window size,
redraw graphs (once) also after resizing the window.
This also captures window resize due to orientation change
(e.g., for mobile).
Since multiple resize events are fired when dragging the window
border, there is a 250ms delay for debouncing.

Signed-off-by: default avatarRani Hod <rani.hod@gmail.com>
Tested-by: default avatarPaul Donald <newtwen@gmail.com>
parent 1e84a039
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment