From 16fa3c3efa2aed951cd8dfe7b703d001bc4eecd5 Mon Sep 17 00:00:00 2001 From: Povilas Staskus Date: Fri, 30 Dec 2022 11:24:38 +0200 Subject: [PATCH] Layout Insights Update prompt header when dynamic type changes (#19819) --- .../Collapsable Header/CollapsableHeaderViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Gutenberg/Collapsable Header/CollapsableHeaderViewController.swift b/WordPress/Classes/ViewRelated/Gutenberg/Collapsable Header/CollapsableHeaderViewController.swift index 6665dac9fee2..4066f90cd392 100644 --- a/WordPress/Classes/ViewRelated/Gutenberg/Collapsable Header/CollapsableHeaderViewController.swift +++ b/WordPress/Classes/ViewRelated/Gutenberg/Collapsable Header/CollapsableHeaderViewController.swift @@ -304,6 +304,9 @@ class CollapsableHeaderViewController: UIViewController, NoResultsViewHost { // This helps reset the header changes after a rotation. scrollViewDidScroll(scrollableView) scrollViewDidEndDecelerating(scrollableView) + } else { + layoutHeader() + snapToHeight(scrollableView) } }