summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-12-17 17:27:35 -0500
committerAndreas Kling <kling@serenityos.org>2022-12-20 10:22:27 +0100
commit02212f373be0bbf4ccbb97a7266368cd208389e9 (patch)
treed71c0acbd0babce9ead245b687d5c50f3ffb4847 /Userland
parentd973d43b136ace61dce788082922fcb94218692c (diff)
downloadserenity-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.cpp1
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();
}