Skip to content

Commit fccdb70

Browse files
Remove rect invalidation
1 parent 4c1edb4 commit fccdb70

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/Platforms/Scalex.Avalonia/Scalex.Avalonia.UI/Controls/ChordDiagram.axaml.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ public override void Render(DrawingContext context)
4040
}
4141

4242
context.Custom(_customDrawingOp);
43-
44-
//Dispatcher.UIThread.InvokeAsync(InvalidateVisual, DispatcherPriority.Background);
45-
46-
var diagramWidth = _diagramRenderer.GetRequiredWidthPerChord() * _diagramRenderer.ChordsPerRow;
47-
if (this.Width != diagramWidth) this.Width = diagramWidth;
48-
if (this.Height != 500) this.Height = 500;
4943
}
5044
}
5145
}

src/Platforms/Scalex.Avalonia/Scalex.Avalonia.UI/Controls/ScaleDiagram.axaml.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,6 @@ public override void Render(DrawingContext context)
7171
_diagramRenderer.SetGuitarModel(ViewModels.MainViewModel.GuitarModel);
7272

7373
context.Custom(_customDrawingOp);
74-
75-
//Dispatcher.UIThread.InvokeAsync(InvalidateVisual, DispatcherPriority.Background);
76-
77-
var diagramWidth = _diagramRenderer.GetDiagramWidth() * 4;
78-
var diagramHeight = _diagramRenderer.GetFretboardHeight() * 2;
79-
if (this.Width != diagramWidth) this.Width = diagramWidth;
80-
if (this.Height != diagramWidth) this.Height = diagramHeight;
81-
8274
}
8375
}
8476
}

0 commit comments

Comments
 (0)