From 1bc21ec356d021d8552259fbe1378a3a3346933d Mon Sep 17 00:00:00 2001 From: Karen Lai <7976322+karenbtlai@users.noreply.github.com> Date: Tue, 11 Jan 2022 10:34:50 -0800 Subject: [PATCH] revert widthexpansiondelta (#6343) --- dev/CommandBarFlyout/CommandBarFlyoutCommandBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });