diff --git a/dev/CommandBarFlyout/CommandBarFlyoutCommandBar.cpp b/dev/CommandBarFlyout/CommandBarFlyoutCommandBar.cpp index fae82e0e3f..53bcfa6bfe 100644 --- a/dev/CommandBarFlyout/CommandBarFlyoutCommandBar.cpp +++ b/dev/CommandBarFlyout/CommandBarFlyoutCommandBar.cpp @@ -678,7 +678,7 @@ void CommandBarFlyoutCommandBar::UpdateTemplateSettings() collapsedWidth = static_cast(expandedWidth); } - flyoutTemplateSettings->WidthExpansionDelta(0); + flyoutTemplateSettings->WidthExpansionDelta(collapsedWidth - expandedWidth); flyoutTemplateSettings->WidthExpansionAnimationStartPosition(-flyoutTemplateSettings->WidthExpansionDelta() / 2.0); flyoutTemplateSettings->WidthExpansionAnimationEndPosition(-flyoutTemplateSettings->WidthExpansionDelta()); flyoutTemplateSettings->ContentClipRect({ 0, 0, static_cast(expandedWidth), primaryItemsRootDesiredSize.Height });