File tree 2 files changed +0
-14
lines changed
src/Platforms/Scalex.Avalonia/Scalex.Avalonia.UI/Controls
2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,6 @@ public override void Render(DrawingContext context)
40
40
}
41
41
42
42
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 ;
49
43
}
50
44
}
51
45
}
Original file line number Diff line number Diff line change @@ -71,14 +71,6 @@ public override void Render(DrawingContext context)
71
71
_diagramRenderer . SetGuitarModel ( ViewModels . MainViewModel . GuitarModel ) ;
72
72
73
73
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
-
82
74
}
83
75
}
84
76
}
You can’t perform that action at this time.
0 commit comments