add HorizontalNoOverflowStackPanel to vcproj.filters

This commit is contained in:
Rudy Huyn 2019-03-20 00:42:32 -07:00
commit a24204e448
2 changed files with 7 additions and 1 deletions

View file

@ -308,6 +308,9 @@
<ClCompile Include="Common\AppLifecycleLogger.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="Controls\HorizontalNoOverflowStackPanel.cpp">
<Filter>Controls</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h" />
@ -407,6 +410,9 @@
<ClInclude Include="Common\AppLifecycleLogger.h">
<Filter>Common</Filter>
</ClInclude>
<ClInclude Include="Controls\HorizontalNoOverflowStackPanel.h">
<Filter>Controls</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest" />

View file

@ -55,7 +55,7 @@ Size HorizontalNoOverflowStackPanel::ArrangeOverride(Size finalSize)
{
//stack the items horizontally (left to right)
item->Arrange(Rect(posX, 0, itemWidth, finalSize.Height));
posX += item->DesiredSize.Width;
posX += item->RenderSize.Width;
}
else
{