|
4 | 4 | #include "pch.h"
|
5 | 5 | #include "Pane.h"
|
6 | 6 |
|
7 |
| -#include "BellEventArgs.g.cpp" |
8 |
| - |
9 | 7 | #include "AppLogic.h"
|
10 | 8 |
|
11 | 9 | #include "Utils.h"
|
@@ -2642,7 +2640,7 @@ Pane::SnapSizeResult Pane::_CalcSnappedDimension(const bool widthOrHeight, const
|
2642 | 2640 | }
|
2643 | 2641 | else
|
2644 | 2642 | {
|
2645 |
| - const auto cellSize = snappable.GridSize(); |
| 2643 | + const auto cellSize = snappable.GridUnitSize(); |
2646 | 2644 | const auto higher = lower + (direction == PaneSnapDirection::Width ?
|
2647 | 2645 | cellSize.Width :
|
2648 | 2646 | cellSize.Height);
|
@@ -2703,13 +2701,11 @@ void Pane::_AdvanceSnappedDimension(const bool widthOrHeight, LayoutSizeNode& si
|
2703 | 2701 | // be, say, half a character, or fixed 10 pixels), so snap it upward. It might
|
2704 | 2702 | // however be already snapped, so add 1 to make sure it really increases
|
2705 | 2703 | // (not strictly necessary but to avoid surprises).
|
2706 |
| - sizeNode.size = _CalcSnappedDimension(widthOrHeight, |
2707 |
| - sizeNode.size + 1) |
2708 |
| - .higher; |
| 2704 | + sizeNode.size = _CalcSnappedDimension(widthOrHeight, sizeNode.size + 1).higher; |
2709 | 2705 | }
|
2710 | 2706 | else
|
2711 | 2707 | {
|
2712 |
| - const auto cellSize = snappable.GridSize(); |
| 2708 | + const auto cellSize = snappable.GridUnitSize(); |
2713 | 2709 | sizeNode.size += widthOrHeight ? cellSize.Width : cellSize.Height;
|
2714 | 2710 | }
|
2715 | 2711 | }
|
@@ -2825,7 +2821,7 @@ Size Pane::_GetMinSize() const
|
2825 | 2821 | {
|
2826 | 2822 | if (_IsLeaf())
|
2827 | 2823 | {
|
2828 |
| - auto controlSize = _content.MinSize(); |
| 2824 | + auto controlSize = _content.MinimumSize(); |
2829 | 2825 | auto newWidth = controlSize.Width;
|
2830 | 2826 | auto newHeight = controlSize.Height;
|
2831 | 2827 |
|
|
0 commit comments