Skip to content

Conversation

@Logikgate
Copy link

Set gravity to CENTER_VERTICAL on android to match iOS labels which default to vertically centered

Fixes issue #3829

PR Checklist

Playground

This playground displays the issue

What is the current behavior?

Labels on iOS are by default vertically aligned center in all layouts. On Android they are aligned top. Reference issue #3829.
Screen Shot 2019-12-27 at 11 28 33 AM

What is the new behavior?

Labels on Android are now vertically aligned center by default
Screen Shot 2019-12-27 at 11 29 20 AM

Fixes #3829.

Set gravity to CENTER_VERTICAL on android to match iOS labels which default to vertically centered

Fixes issue NativeScript#3829
@cla-bot cla-bot bot added the cla: yes label Dec 27, 2019
@vakrilov
Copy link
Contributor

vakrilov commented Jan 6, 2020

Hey @Logikgate
Thanks for the PR. However, changing the default behavior will probably break the layout and appearance of many apps that are relying on the existing behavior. Such change should be treated as a breaking change and so we cannot safely merge it now.
I think there are other options - let's discuss these in the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vertically center label on android by default

3 participants