Browse Source

Remove TextBox margin hack

pull/6285/head
Max Katz 5 years ago
committed by GitHub
parent
commit
eeb593f041
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Themes.Fluent/Controls/TextBox.xaml

2
src/Avalonia.Themes.Fluent/Controls/TextBox.xaml

@ -76,9 +76,7 @@
IsVisible="{TemplateBinding Text, Converter={x:Static StringConverters.IsNullOrEmpty}}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
<!-- TODO eliminate this margin... text layout issue? -->
<TextPresenter Name="PART_TextPresenter"
Margin="0 1 0 0"
Text="{TemplateBinding Text, Mode=TwoWay}"
CaretIndex="{TemplateBinding CaretIndex}"
SelectionStart="{TemplateBinding SelectionStart}"

Loading…
Cancel
Save