Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23377] Windows: Label with both left and right in ScrollView always shows scroll bar

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-05-16T08:47:35.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKota Iguchi
AssigneeHarry Bryant
Created2016-05-13T14:39:27.000+0000
Updated2016-05-16T18:44:24.000+0000

Description

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();

Comments

  1. Kota Iguchi 2016-05-14

    Note: This ticket was introduced by my original PR for TIMOB-23372. Once TIMOB-23372 is fixed this should be fixed too.
  2. Gary Mathews 2016-05-14

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/690 5_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/691
  3. Kota Iguchi 2016-05-16

    Fixed by TIMOB-23293
  4. Josh Longton 2016-05-16

    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.*

JSON Source