You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Represents a class which holds the information for calendar elements like header, view header and looping panel in vertical stack layout and arranged in Calendar.
//// TODO: Child layouts get the parent flow direction hence while arranging child elements the framework automatically reverses the direction.
47
+
//// In other platforms, child elements' flow direction is not set and always has left flow direction so we have to manually arrange child elements.
48
+
//// The draw view is still needed to configure manually and not take the parent direction.
49
+
//// Due to this inconsistent behavior in windows, set flow direction to LTR for the inner layout of the calendar, so we manually arrange and draw child elements for all the platforms as common.
50
+
//// The draw view does not arrange based on the flow direction. https://github.com/dotnet/maui/issues/6978
//// In android platform some time's the InvalidateMeasure doesn't trigger the layout measure.So the view doesn't renderer properly. Hence calling measure and arrange directly without InvalidateMeasure.
67
+
#if __ANDROID__
68
+
this.TriggerInvalidateMeasure();
69
+
#else
70
+
InvalidateMeasure();
71
+
#endif
72
+
}
73
+
74
+
/// <summary>
75
+
/// Update the footer height value when the calendar footer height changed.
//// In android platform some time's the InvalidateMeasure doesn't trigger the layout measure.So the view doesn't renderer properly. Hence calling measure and arrange directly without InvalidateMeasure.
101
+
#if __ANDROID__
102
+
this.TriggerInvalidateMeasure();
103
+
#else
104
+
InvalidateMeasure();
105
+
#endif
106
+
}
107
+
108
+
/// <summary>
109
+
/// Method to update the month view header height.
//// In android platform some time's the InvalidateMeasure doesn't trigger the layout measure.So the view doesn't renderer properly. Hence calling measure and arrange directly without InvalidateMeasure.
117
+
#if __ANDROID__
118
+
this.TriggerInvalidateMeasure();
119
+
#else
120
+
InvalidateMeasure();
121
+
#endif
122
+
}
123
+
124
+
/// <summary>
125
+
/// Updates the flow direction.
126
+
/// </summary>
127
+
internalvoidUpdateFlowDirection()
128
+
{
129
+
//// In android platform some time's InvalidateMeasure does not trigger while the calendar identifier is changed at run time. So the header view doesn't render properly.
130
+
//// Hence calling measure and arrange directly without InvalidateMeasure.
131
+
#if __ANDROID__
132
+
this.TriggerInvalidateMeasure();
133
+
#else
134
+
InvalidateMeasure();
135
+
#endif
136
+
}
137
+
138
+
#endregion
139
+
140
+
#region Internal Override Methods
141
+
142
+
/// <summary>
143
+
/// Method used to arrange the children with in the bounds.
144
+
/// </summary>
145
+
/// <param name="bounds">The size of the layout.</param>
0 commit comments