Browse Source

Merge pull request #6285 from AvaloniaUI/textbox-margin

Remove TextBox margin hack
pull/6313/head
Jumar Macato 5 years ago
committed by GitHub
parent
commit
2b3f7e9e01
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