diff --git a/Fluent.Ribbon/Controls/InRibbonGallery.cs b/Fluent.Ribbon/Controls/InRibbonGallery.cs
index fac9b17db..1e9f211e4 100644
--- a/Fluent.Ribbon/Controls/InRibbonGallery.cs
+++ b/Fluent.Ribbon/Controls/InRibbonGallery.cs
@@ -1096,26 +1096,6 @@ public override void OnApplyTemplate()
this.popupControlPresenter = this.GetTemplateChild("PART_PopupContentPresenter") as ContentControl;
this.scrollViewer = this.GetTemplateChild("PART_ScrollViewer") as ScrollViewer;
-
- this.RunInDispatcherAsync(this.ForceContentRefreshToFixLayout, DispatcherPriority.ContextIdle);
- }
-
- ///
- /// Hack: This fixes weird layout bugs. If someone ever finds out why the layout gets messed up without this, please notify me.
- /// For example #123 (https://github.com/fluentribbon/Fluent.Ribbon/issues/123) gets fixed by this hack.
- ///
- private void ForceContentRefreshToFixLayout()
- {
- if (this.controlPresenter == null
- || this.galleryPanel == null)
- {
- return;
- }
-
- this.controlPresenter.Content = null;
- this.controlPresenter.Content = this.galleryPanel;
-
- this.galleryPanel.UpdateMinAndMaxWidth();
}
private void OnPopupPreviewMouseUp(object sender, MouseButtonEventArgs e)
@@ -1576,22 +1556,5 @@ public void Reduce()
}
#endregion
-
- ///
- /// Gets an enumerator for the logical child objects of the object.
- ///
- ///
- /// An enumerator for the logical child objects of the object. The default is null.
- ///
- protected override IEnumerator LogicalChildren
- {
- get
- {
- if (this.galleryPanel != null)
- {
- yield return this.galleryPanel;
- }
- }
- }
}
}
\ No newline at end of file