Closed VisualMelon closed 4 years ago
Btw do we have a sample demonstrating the presence of the issue? If no, then would it be too much to ask you to add a repro to the AvaloniaExamples
project? :pray:
@worldbeater sorry for the sparse report. Below are 'before' and 'after' figures showing the TextAnnotation/TextAnnotation
example in the example browser (pulled in #10).
Before
After
Fixes #11
Sets the
RenderTransformOrigin
ofTextBlock
s to be their Top-Left corner.TextBlock
s were being rotated around their centre, rather than the top-left corner as is typical of e.g. the WinForms renderer from which the code appears to be derived, resulting in incorrect results when the rotation was non-zero.