PaddingLeft on Horizontal ScrollView truncates the right of the list on Android only
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.3k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Description
Hello,
I've encountered the following issue on Android only (works perfectly on iOS & web)
Using ScrollView, I created a horizontal scrollable list of items. But when I apply paddingLeft to the ScrollView, the last item of the list is truncated on Android devices.
Steps to reproduce
- Go to https://snack.expo.dev/@wreyno/awkward-green-waffle
- Launch on iOS & Web and notice Option 10 is not truncated
- Launch on Android and see Option 10 is truncated
React Native Version
0.79.4
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
N/A
Stacktrace or Logs
N/A
MANDATORY Reproducer
https://snack.expo.dev/@wreyno/awkward-green-waffle
Screenshots and Videos
iOS, Option 10 is not truncated
Android, Option 10 is truncated
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem verlinkten Expo Snack-Reproduktionsbeispiel und bestätige das Verhalten der horizontalen ScrollView auf Android, iOS und im Web. Verfolge das Android-spezifische ScrollView-Verhalten, das padding behandelt, und vergleiche es mit den funktionierenden Plattformen; abgeschlossen ist die Arbeit, wenn das letzte Element auf Android nicht mehr abgeschnitten wird, während die anderen Plattformen unverändert bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100