Skip to content

Commit

Permalink
feat: Updated default value to match UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Oct 6, 2020
1 parent 49f2ae5 commit fdda6c5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ private protected override void OnLoaded()
partial void InitializePropertiesPartial()
{
OnImeOptionsChanged(ImeOptions);
OnVerticalContentAlignmentChanged(VerticalAlignment.Center, VerticalContentAlignment);
}

private void UpdateTextBoxView()
Expand Down
6 changes: 0 additions & 6 deletions src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ partial void InitializePropertiesPartial()
OnTextAlignmentChanged(CreateInitialValueChangerEventArgs(TextAlignmentProperty, null, TextAlignment));
OnReturnKeyTypeChanged(ReturnKeyType);
OnKeyboardAppearanceChanged(KeyboardAppearance);
OnVerticalContentAlignmentChanged(GetDefaultVerticalContentAlignment(), VerticalContentAlignment);
}

partial void OnFocusStateChangedPartial(FocusState focusState)
Expand Down Expand Up @@ -325,10 +324,5 @@ private void OnKeyboardAppearanceChanged(UIKeyboardAppearance newValue)
}

#endregion

private VerticalAlignment GetDefaultVerticalContentAlignment() =>
AcceptsReturn || TextWrapping != TextWrapping.NoWrap
? VerticalAlignment.Top
: VerticalAlignment.Center;
}
}
1 change: 0 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.macOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ protected TextBox(bool isPassword)
partial void InitializePropertiesPartial()
{
OnTextAlignmentChanged(CreateInitialValueChangerEventArgs(TextAlignmentProperty, null, TextAlignment));
OnVerticalContentAlignmentChanged(VerticalAlignment.Top, VerticalContentAlignment);
}

partial void OnFocusStateChangedPartial(FocusState focusState)
Expand Down

0 comments on commit fdda6c5

Please sign in to comment.