Skip to content

Commit

Permalink
Update fontsize of drawing surface on textsubmitted
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuavio committed Apr 16, 2021
1 parent 5410843 commit 196dad9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ private void CanvasComboBoxFontSizeTextBox_TextSubmitted(ComboBox sender, ComboB
if (float.TryParse(args.Text, out var size))
{
SetFontSize(size);

if (SelectedTextDrawable != null)
{
_drawingSurfaceRenderer.ExecuteUpdateTextBoxFontSize(size);
ReDrawCanvas();
}
}
}

Expand Down

0 comments on commit 196dad9

Please sign in to comment.