Closed sla-te closed 3 years ago
I tested it, and I don't see how this could've ever worked :)
if imgui.get_scroll_y() >= imgui.get_scroll_max_y():
imgui.set_scroll_here(1.0)
This if-statement is false after a row is added, since the get_scroll_y
stays the same, and get_scroll_max_y
increases. As a simple work-around, something like this seems to work:
if imgui.get_scroll_y() >= imgui.get_scroll_max_y() - 30:
imgui.set_scroll_here(1.0)
but that is quite hacky, since it probably doesn't work when the font gets larger. I don't know how to solve it right now, but it should be doable with some more programming. All the functions that are used seem to work correctly, do they not?
Wow, didnt even notice, that during my last task 6 hours have passed, yeah that fixed it, great!
We had implemented a custom log widget as follows.
It is implemented inside a
multi_orr()
as follows:and listens to a log_queue:
which is processed as:
The autoscrolling had worked when we first implemented it but (supposedly due to some part of the updates, that were released in the meantime) it stopped working.