[TIMOB-20177] Label inside Scrollview is not show after certain amount of characters
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-11-13T22:30:28.000+0000 |
Affected Version/s | Release 5.1.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | Label, ScrollView |
Reporter | David Benko |
Assignee | Vijay Singh |
Created | 2015-12-23T00:09:11.000+0000 |
Updated | 2019-11-13T22:30:28.000+0000 |
Description
After 13k characters the label don't appear
<Alloy>
<Window backgroundColor="white">
<ScrollView>
<Label id="label" />
</ScrollView>
</Window>
</Alloy>
var labelLength = 1000;
setInterval(function() {
console.log(labelLength);
$.label.text = Array(labelLength).join("a");
labelLength += 1000;
}, 1000);
$.index.open();
Hello, This is a valid bug in Scrollview with Label. The label doesn't show inside a scrollview when the label character exceeds 13k. I have tested the reported sample code in SDK 5.1.1.GA with iOS 9.1. I have observed the same result. The label vanishes when the character length exceeds 13k. I tried to test the behavior without the scrollview and the I saw that it works. The label doesn't vanishes. So it's a bug in scrollview to limit the label character.
My Environment
OS X El Capitan 10.11.2 XCode 7.1 iPhone Simulator 6s Plus / iOS 9.1 Ti SDK 5.1.1.GA Thanks.This happens only on iOS
Any known workarounds?
Possible workaround: Split the text in multiple labels. Having multiple labels with less than 13k characters inside the scrollview does not cause the bug One note: it appears that the bug is not about character limit, but size of the label. If you have a lower font size, its possible to have more than 13k characters without the label vanishing
Cannot reproduce. I stopped after 28000. Axway Appcelerator Studio, build: 5.1.4.201909061933 macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.1 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.2.1.GA