mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
add HorizontalNoOverflowStackPanel to vcproj.filters
This commit is contained in:
parent
717039a4bc
commit
a24204e448
2 changed files with 7 additions and 1 deletions
|
@ -308,6 +308,9 @@
|
||||||
<ClCompile Include="Common\AppLifecycleLogger.cpp">
|
<ClCompile Include="Common\AppLifecycleLogger.cpp">
|
||||||
<Filter>Common</Filter>
|
<Filter>Common</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="Controls\HorizontalNoOverflowStackPanel.cpp">
|
||||||
|
<Filter>Controls</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="pch.h" />
|
<ClInclude Include="pch.h" />
|
||||||
|
@ -407,6 +410,9 @@
|
||||||
<ClInclude Include="Common\AppLifecycleLogger.h">
|
<ClInclude Include="Common\AppLifecycleLogger.h">
|
||||||
<Filter>Common</Filter>
|
<Filter>Common</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Controls\HorizontalNoOverflowStackPanel.h">
|
||||||
|
<Filter>Controls</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AppxManifest Include="Package.appxmanifest" />
|
<AppxManifest Include="Package.appxmanifest" />
|
||||||
|
|
|
@ -55,7 +55,7 @@ Size HorizontalNoOverflowStackPanel::ArrangeOverride(Size finalSize)
|
||||||
{
|
{
|
||||||
//stack the items horizontally (left to right)
|
//stack the items horizontally (left to right)
|
||||||
item->Arrange(Rect(posX, 0, itemWidth, finalSize.Height));
|
item->Arrange(Rect(posX, 0, itemWidth, finalSize.Height));
|
||||||
posX += item->DesiredSize.Width;
|
posX += item->RenderSize.Width;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue