fredlcore / BSB-LAN

LAN/WiFi interface for Boiler-System-Bus (BSB) and Local Process Bus (LPB) and Punkt-zu-Punkt Schnittstelle (PPS) with a Siemens® controller used by Elco®, Brötje® and similar heating systems
225 stars 84 forks source link

/DG: automatically scale plot to fill whole browser window #464

Closed DE-cr closed 2 years ago

DE-cr commented 2 years ago

I've eventually figured out how to do this. No more wasted screen estate, no more cut off graphs!

With this implementation, invoking BSB-LAN's /GD page at first shows the graph cut off at the bottom, but that is easily "fixed" by hitting page down once. Then the graph fills the complete browser window (and BSB-LAN's menu is scrolled out of view at the top).

DE-cr commented 2 years ago

Tiny window, with 150% display scaling enabled: tiny_window_with_150_percent_scaling_top tiny_window_with_150_percent_scaling_bottom

DE-cr commented 2 years ago

UHD fullscreen, 100%: UHD_fullscreen_top UHD_fullscreen_bottom

DE-cr commented 2 years ago

Both examples above show the initial/top part of the /DG page first, then the page scrolled down for the full graph. (The data displayed isn't very interesting, but that's not the point here. ;)