Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17166] iOS: clipMode works on Simulator, fails on device

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-06-19T19:37:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsiOS
Labels3.3.0.RC, clipMode, clipping, module_view, qe-testadded
ReporterFokke Zandbergen
AssigneeVishal Duggal
Created2014-06-16T12:23:19.000+0000
Updated2014-06-19T22:20:52.000+0000

Description

When I run the following code on both simulator and device, the first one does the clipping, but the second one fails, as screenshots show:
Ti.UI.setBackgroundColor('#000');

var win = Ti.UI.createWindow({
  backgroundColor: 'red'
});

var clipper = Ti.UI.createView({
  width: 100,
  height: 100,
  clipMode: Ti.UI.iOS.CLIP_MODE_ENABLED,
  backgroundColor: 'blue'
});

var view = Ti.UI.createView({
  width: 300,
  height: 300,
  backgroundColor: 'green'
});

clipper.add(view);
win.add(clipper);

win.open();

Attachments

FileDateSize
iOS Simulator Screen shot 16 Jun 2014 14.18.52.png2014-06-16T12:23:19.000+000016344
Screenshot 2014.06.16 14.18.55.png2014-06-16T12:23:19.000+000025912

Comments

  1. Shuo Liang 2014-06-17

    I can reproduce this problem: CLI/SDK 3.3.0.RC iOS Simulator 7.1 iPhone 4, iOS 7.1.1
  2. Fokke Zandbergen 2014-06-17

    Is this not going to be fixed for 3.3.0 or do I read that wrong? I have some apps breaking because of this :(
  3. Shuo Liang 2014-06-17

    ye. Our engineer team will take care of this bug.
  4. Ingo Muschenetz 2014-06-17

    [~fokke] merge-3.3.0 is what you want to see.
  5. Fokke Zandbergen 2014-06-17

    [~ingo], what does *Fix Version/s: Release 3.4.0* mean then? Not complaining, just trying to see the logic ;)
  6. Ingo Muschenetz 2014-06-17

    [~fokke] We've branched titanium_mobile for 3.3.X. We initially commit all tickets to the master branch, which is now 3.4.0, but we then cherry-pick over to 3.3.X. Thus, the finished ticket will have two fix versions, 3.3.0 and 3.4.0. We may revise this process in the future as it has been known to cause confusion.
  7. Pier Paolo Ramon 2014-06-17

    Is it because if you keep 3.3.0 as master then unstable code gets into the release?
  8. Ingo Muschenetz 2014-06-17

    Yes, we want to only take into 3.3.0 what are blocker issues. If we didn't branch, then we'd block all other forward development.
  9. Vishal Duggal 2014-06-17

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/5810 3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5811
  10. Samuel Dowse 2014-06-19

    Verified fixed on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201406171619 Titanium SDK, build: 3.3.0.v20140619144008 Titanium CLI, build: 3.3.0-rc Alloy: 1.4.0-rc iOS Simulator: iPhone (7.1) iOS Device: iPhone 5S (7.1.1) Green view is clipped successfully on both Simulator and Device. Closing.

JSON Source