1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibGUI: Recalculate GlyphMapWidget content size when changing font

Previously, if it was displaying N glyphs per line, then you changed
font to one that was a drastically different size, it would continue to
display N glyphs per line until you resized the window. Now, we
immediately recalculate how many to show, so that they fill the
available width. :^)
This commit is contained in:
Sam Atkins 2022-01-09 17:42:57 +00:00 committed by Andreas Kling
parent 21a24c36a8
commit 15a7dfbc30
2 changed files with 19 additions and 12 deletions

View file

@ -75,6 +75,7 @@ private:
void copy_glyph(int glyph);
void paste_glyph(int glyph);
void delete_glyph(int glyph);
void recalculate_content_size();
int m_glyph_count { 0x110000 };
int m_columns { 0 };