Plugin.SegmentedControl icon indicating copy to clipboard operation
Plugin.SegmentedControl copied to clipboard

incorrect element size in android

Open alex-relov opened this issue 6 years ago • 6 comments

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

alex-relov avatar Aug 07 '19 05:08 alex-relov

Does it work with previous versions? How to reproduce?

1iveowl avatar Aug 14 '19 11:08 1iveowl

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

alex-relov avatar Aug 23 '19 05:08 alex-relov

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.

1iveowl avatar Oct 16 '19 10:10 1iveowl

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 avatar Feb 26 '20 16:02 agat366

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.

agat366 avatar Feb 26 '20 17:02 agat366

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.

MalmoIt avatar Nov 02 '21 19:11 MalmoIt