mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
FontEditor: Keep selected glyph in view on resize
This commit is contained in:
parent
efe44451ca
commit
bbaebdcd00
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
Add a link
Reference in a new issue