Skip to content

Commit 599fce0

Browse files
Update the zindex in constructor
1 parent d4c647b commit 599fce0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

maui/src/Charts/Area/CartesianChartArea.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public CartesianChartArea(SfCartesianChart chart)
107107
_axisLayout.InputTransparent = true;
108108
Add(_annotationLayout);
109109
Add(_behaviorLayout);
110+
_behaviorLayout.ZIndex = this.Children.Count;
110111
BatchCommit();
111112
}
112113

maui/src/Charts/SfCartesianChart.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,11 +1346,6 @@ internal void UpdateView()
13461346
if (!_chartArea.Contains(_trackballView))
13471347
{
13481348
_chartArea.Add(_trackballView);
1349-
1350-
if (BehaviorLayout != null)
1351-
{
1352-
BehaviorLayout.ZIndex = _chartArea.Count;
1353-
}
13541349
}
13551350

13561351
if (!_chartArea.Contains(_zoomPanView))

0 commit comments

Comments
 (0)