File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,11 @@ protected override Size MeasureOverride(Size availableSize)
89
89
{
90
90
if ( Column is not null && Row is not null && _contentPresenter is not null && Content is FrameworkElement element )
91
91
{
92
- #if WINDOWS
93
92
#region TEMP_FIX_FOR_ISSUE https://github.com/microsoft/microsoft-ui-xaml/issues/9860
94
93
element . MaxWidth = double . PositiveInfinity ;
95
94
element . MaxHeight = double . PositiveInfinity ;
96
95
#endregion
97
- #endif
96
+
98
97
element . Measure ( new Size ( double . PositiveInfinity , double . PositiveInfinity ) ) ;
99
98
100
99
var desiredWidth = element . DesiredSize . Width ;
@@ -108,7 +107,6 @@ protected override Size MeasureOverride(Size availableSize)
108
107
109
108
Column . DesiredWidth = Math . Max ( Column . DesiredWidth , desiredWidth ) ;
110
109
111
- #if WINDOWS
112
110
#region TEMP_FIX_FOR_ISSUE https://github.com/microsoft/microsoft-ui-xaml/issues/9860
113
111
var contentWidth = Column . ActualWidth ;
114
112
contentWidth -= element . Margin . Left ;
@@ -145,7 +143,6 @@ protected override Size MeasureOverride(Size availableSize)
145
143
_contentPresenter . Visibility = Visibility . Visible ;
146
144
}
147
145
#endregion
148
- #endif
149
146
}
150
147
151
148
return base . MeasureOverride ( availableSize ) ;
You can’t perform that action at this time.
0 commit comments