FontEditor: Keep selected glyph in view on resize
This commit is contained in:
parent
efe44451ca
commit
bbaebdcd00
Notes:
sideshowbarker
2024-07-18 03:33:25 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/bbaebdcd000 Pull-request: https://github.com/SerenityOS/serenity/pull/10175
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ void GlyphMapWidget::resize_event(GUI::ResizeEvent& event)
|
|||
int content_height = rows() * (font().glyph_height() + m_vertical_spacing) + frame_thickness();
|
||||
set_content_size({ content_width, content_height });
|
||||
|
||||
scroll_to_glyph(m_selected_glyph);
|
||||
|
||||
AbstractScrollableWidget::resize_event(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue