1iveowl / Plugin.SegmentedControl

MIT License
170 stars 29 forks source link

incorrect element size in android #69

Open alex-relov opened 5 years ago

alex-relov commented 5 years ago

version 4.1.0, android emulator 9, compile target android 9 image

1iveowl commented 5 years ago

Does it work with previous versions? How to reproduce?

alex-relov commented 5 years ago

Does it work with previous versions? How to reproduce? Clone repository and run on android device https://github.com/alex-relov/Segmented

1iveowl commented 4 years ago

Please see if this has been solved with v4.2.0 where I've updated to Xamarin Forms 4.2 and some of the Android dependencies.

agat366 commented 4 years ago

Yes. It's still actual as of 4.2.0. on Android 6.0, 8.0 (and 10). I am having it on Android only. There seems some issue with calculating the tab space width (or something with right margin, as it's squeezed as much as narrow width of the control is.

Another interesting thing: if I do Hot Reload (just updating the content of the page, not necessarily the control), it renders well right after that.

agat366 commented 4 years ago

Actually, found the cause of the issue. (At least, in my case). It happens when SegmentedControl is located directly in the Grid. When I wrap it with StackLayout, for instance, it gets rendered well.

MalmoIt commented 2 years ago

Actually, found the cause of the issue. (At least, in my case). It happens when SegmentedControl is located directly in the Grid. When I wrap it with StackLayout, for instance, it gets rendered well.

Worked for me as well, cheers.