1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibGUI: Reset GlyphMapWidget scroll value when changing active range

Fixes being teleported to the old location when scrolling on a
previously browsed range.
This commit is contained in:
thankyouverycool 2022-12-17 17:27:35 -05:00 committed by Andreas Kling
parent d973d43b13
commit 02212f373b

View file

@ -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();
}