NativeScript / NativeScript/NativeScript
[Android] Background color and border are not applying to long height element inside ScrollView
Open
@tsonevn is already working on this.
Since Nov 8, 2019.
bug
os: android
- Dominant language
- TypeScript
- Stars
- 25.7k
- Forks
- 1.7k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 35
Description
Environment
- CLI: 6.1.2
- Cross-platform modules: 6.1.1
- Android Runtime: 6.1.2
Target Platform
- Device 1: Android: 6.0.1 , Display: 720 x 1280
- Device 2: Android: 4.2.2 , Display: 1920 x 1200
- Device 3: Android: 6.0.1 , Display: 800 x 1280
Describe the bug
Background color and border are not applying to elements with height longer than 2048 (Device 1) and 2730 (Device 2) and 3075 (Device 3). I've also tested this on Android 9 and it works fine.
To Reproduce
- Create a component with HTML:
<ScrollView>
<StackLayout>
<Label textWrap="true" height="5000"
text="I have a border and background color"
style="background-color: #eee; color: red; border-width: 1" />
</StackLayout>
</ScrollView>
- Run
tns run android
Expected behavior
The label should have border and background-color
Sample project
https://play.nativescript.org/?id=MT6EN6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.