Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20404] iOS: ProgressBar gets clipped in parent with height Ti.UI.SIZE

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-11-08T14:07:18.000+0000
Affected Version/sRelease 5.2.0
Fix Version/sRelease 7.0.0
ComponentsiOS
Labelsprogressbar, reprod
ReporterFokke Zandbergen
AssigneeVijay Singh
Created2016-02-15T13:31:55.000+0000
Updated2017-11-09T19:55:24.000+0000

Description

While building samples I noticed that if a ProgressBar is wrapped in a parent that has its height set to Ti.UI.SIZE it will be clipped as the following code and attached screenshot shows.
var win = Ti.UI.createWindow({
  backgroundColor: 'white'
});

win.add(Ti.UI.createProgressBar({
  width: 250,
  value: 0.5,
  message: 'Half way there'
}));

var view = Ti.UI.createView({
  top: 100,
  height: Ti.UI.SIZE,
  backgroundColor: '#eee'
});
win.add(view);

view.add(Ti.UI.createProgressBar({
  width: 250,
  value: 0.5,
  message: 'Half way there'
}));

win.open();

Attachments

FileDateSize
Simulator Screen Shot 15 Feb 2016 14.31.49.png2016-02-15T13:31:52.000+000021768

Comments

  1. Lee Morris 2017-06-27

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131
  2. Vijay Singh 2017-08-04

    PR: https://github.com/appcelerator/titanium_mobile/pull/9273
  3. Eric Wieber 2017-11-09

    Verified in SDK build 7.0.0.v20171108185342

JSON Source