diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-12-17 17:27:35 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-20 10:22:27 +0100 |
commit | 02212f373be0bbf4ccbb97a7266368cd208389e9 (patch) | |
tree | d71c0acbd0babce9ead245b687d5c50f3ffb4847 /Userland | |
parent | d973d43b136ace61dce788082922fcb94218692c (diff) | |
download | serenity-02212f373be0bbf4ccbb97a7266368cd208389e9.zip |
LibGUI: Reset GlyphMapWidget scroll value when changing active range
Fixes being teleported to the old location when scrolling on a
previously browsed range.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/GlyphMapWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp index 65a1c86a26..f6a4923f1c 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp @@ -515,6 +515,7 @@ void GlyphMapWidget::set_active_range(Unicode::CodePointRange range) m_active_range = range; m_glyph_count = range.last - range.first + 1; set_active_glyph(range.first); + vertical_scrollbar().set_value(0); recalculate_content_size(); update(); } |