cyberbit / telem

Trivial ETL Engine for Minecraft
http://telem.cyberbit.dev
Other
13 stars 3 forks source link

ChartLine: Resizing window does not update chart area #38

Closed cyberbit closed 6 months ago

cyberbit commented 6 months ago

Reported by juh9870 in Discord.

When a window (in this case a monitor) is resized, the plot area does not automatically pick up the change and becomes cut off.

Original monitor configuration: image

Removing one column of monitors from the left: image

A possible fix would involve checking the size of the assigned window at the start of every write call and updating internal structures. In addition to this, a function should be provided for triggering a layout refresh on the adapter manually.