Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoundedCornerView does not layout its content in Android. #47

Open
antontsvil opened this issue May 25, 2017 · 1 comment
Open

RoundedCornerView does not layout its content in Android. #47

antontsvil opened this issue May 25, 2017 · 1 comment

Comments

@antontsvil
Copy link

RoundedCornerView can have another view set as its content, which can be aligned using Horizontal/VeriticalOptions. This works as expected in iOS, but not in Android.

I've made a quick project to demonstrate this bug here
https://github.com/antontsvil/NControls-RoundedCornerView-LayoutBug

iOS, Horizontal Center, Vertical Center

simulator screen shot may 25 2017 12 18 12 am

Android, Horizontal Center, Vertical Center

screenshot_1495685853

Android, Vertical EndAndExpand

screenshot_1495687008

Seems like on android, the control is not aware of its own full width, and is missing half it's height. As even setting it to EndAndExpand will leave it stuck on the left side, halfway down. This behavior is not present if you don't set any layout options. In that case, the control will center the view like so :

screenshot_1495686320

@chrfalch
Copy link
Owner

chrfalch commented May 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants