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:
parent
d973d43b13
commit
02212f373b
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue