react-native-segmented-control / segmented-control

React Native SegmentedControl library
MIT License
549 stars 85 forks source link

Android version cut off when last element is selected #92

Closed thomaschaaf closed 4 years ago

thomaschaaf commented 4 years ago

Bug report

Summary

It seems like the right side is cut off on android since version 1.6.0 if the last item is selected.

Version 2.0.0

First Item:

Screenshot 2020-05-30 19 27 43

Last Item:

Screenshot 2020-05-30 19 06 08

Version 1.5.0

Screenshot 2020-05-30 19 21 25

Environment info

Library version: 1.60, 1.6.1 & 2.0.0

Steps to reproduce

Install in emulator or on device. Compare it with version 1.4.0 and there is it pretty.

Reproducible sample code

<View style={{margin: 10}}>
        <SegmentedControl
          style={{margin: 10}}
          selectedIndex={1}
          values={['Photos', 'Settings']}
        />
      </View>
AndriiBoiko commented 4 years ago

The same issue ...

Screenshot 2020-06-01 at 17 11 41
Naturalclar commented 4 years ago

Sorry about the issue! I'll find time this weekend to try to fix it