Skip to content
Snippets Groups Projects
Commit 2186a044 authored by Charlie Jiang's avatar Charlie Jiang
Browse files

[ftinspect] Fix the glyph index selector layout when the window resizes.

Fixes #26. When the window resizes, the invisible tabs don't get notified.
Therefore, when the active tab changes, we need to trigger a manual
relayouting of invisible tabs.

* src/ftinspect/widgets/glyphindexselector.hpp,
  src/ftinspect/widgets/glyphindexselector.cpp:
  Extract public method `relayoutNavigation` from `resizeEvent`.

* src/ftinspect/panels/abstracttab.hpp: Add `relayout` virtual method.

* src/ftinspect/maingui.cpp: Call `AbstractTab::relayout` on the new tab
  when the active tab changes.

* src/ftinspect/panels/singular.cpp, src/ftinspect/panels/singular.hpp,
  src/ftinspect/panels/continuous.cpp, src/ftinspect/panels/continuous.hpp:
  Implement `relayout` method and call `relayoutNavigation` of the glyph
  index selector in `relayout`.
parent 751b0c3d
No related branches found
No related tags found
1 merge request!43[ftinspect] Fix the glyph index selector layout when the window resizes.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment