Skip to content

Commit f351f4d

Browse files
Update the zindex for behavior layout
1 parent 701525a commit f351f4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

maui/src/Charts/SfCartesianChart.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,8 +1345,12 @@ internal void UpdateView()
13451345
{
13461346
if (!_chartArea.Contains(_trackballView))
13471347
{
1348-
var _index = _chartArea.IndexOf(BehaviorLayout);
1349-
_chartArea.Insert(_index, _trackballView);
1348+
_chartArea.Add(_trackballView);
1349+
1350+
if (BehaviorLayout != null)
1351+
{
1352+
BehaviorLayout.ZIndex = _chartArea.Count;
1353+
}
13501354
}
13511355

13521356
if (!_chartArea.Contains(_zoomPanView))

0 commit comments

Comments
 (0)