Recently, UI chart pages of mine started opening with a scroll bar that hasn’t been there before.
I noticed after I upgraded 4.2.0 → 4.2.1 but that’s not definitive so might be misleading.
Any idea how to get rid of the bar? I tried removing some values, doesn’t help. Scale of values seems not to affect it either.
oh-chart-grid also does not seem to have a property for it.
I haven’t seen this personally, but the chart height calculations have changed. However, it also appears that @florian-h05 has also already patched the scroll bar issue just a few weeks ago, so upgrading to a snapshot should fix the problem.
I changed the height calculations because with iOS 17.5 (IIRC) charts/analyzer broke on iOS devices.
This however introduced a few regressions, which I fixed — the current snapshot works fine for me on all my devices.
Sure:
OH 4.2.1, it’s Firefox on Windoze. 4k resolution.
Scaling is such that it opens a window (and when I scale the main UI page to have larger icons/text, the chart opens to fill the full window, then there’s no scrollbar).
On Android/Firefox the same charts look fine.
It’s all charts with two scales and happens everywhere, but even stripping them down to a single value (= single scale, too) does not make a difference.
on the original question, is there a quick fix like height: in the page to remove the bar?
or will that (without your fix) just be a choice between displaying bar on either PC or iPhone?
If you are able to inject a more complex stylesheet through the widget/page YAML, it should be fixable, but I haven’t done that before and don’t know if it’s feasible.
Otherwise, it will be a choice between iOS or non-iOS.
I guess an easier option would be to compile the UI bundle from the 4.2.x branch and deploy it — you can update it without restarting openHAB.