Label
with both
left
and
right
specified in
ScrollView
always shows horizontal scroll bar.
**Expected**
Following example should not show horizontal scroll bar.
var win = Ti.UI.createWindow({ backgroundColor: 'green' });
var scrollView = Ti.UI.createScrollView({
layout: "vertical",
top: 0,
});
var view = Ti.UI.createView({
backgroundColor: 'yellow',
layout: "horizontal",
top: 10,
left: 10,
height: Ti.UI.SIZE,
width: Ti.UI.SIZE,
});
var label = Ti.UI.createLabel({
left: 10,
right: 10,
color: "blue",
text: "this is test text"
});
view.add(label);
scrollView.add(view);
win.add(scrollView);
win.open();
Note: This ticket was introduced by my original PR for TIMOB-23372. Once TIMOB-23372 is fixed this should be fixed too.
master: https://github.com/appcelerator/titanium_mobile_windows/pull/690 5_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/691
Fixed by TIMOB-23293
Verified as fixed. Tested on: Nokia Lumia 928 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Studio: 4.6.0.201605160952 Ti SDK: 5.3.0.v20160516040258 Appc NPM: 4.2.5-5 App CLI: 5.3.0-45 Node v0.12.7 *Closing Ticket.*