Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1595] ClipMode doesn't work when used within a ScrollView

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-09-17T08:05:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Studio
Labelsdefect, ios
ReporterLuke
AssigneeShak Hossain
Created2014-09-24T13:43:25.000+0000
Updated2018-06-18T15:44:21.000+0000

Description

When attempting to use the ClipMode property on a ScrollView, the ClipMode property doesn't seem to take effect. Any views outside the ScrollView are not visible.

Comments

  1. Papia Chowdhury 2015-08-31

    Hello, We have retested this issue with the latest SDK and we found that ClipMode within a ScrollView works perfectly with the latest SDK. This is not a bug anymore. *Testing Environment:* Appcelerator Studio, build: 4.2.0.201508141038 Titanium SDK: 4.1.0 GA iOS simulator: iphone 5s(v8.1) OS X version: 10.9.5 *Steps to test:* Run below code and you will see that clipMode property enforces child view to be clipped to the scroll view bounds. *Test Case:*
       Ti.UI.setBackgroundColor('#000');
        var win = Ti.UI.createWindow({
         backgroundColor: 'red'
       });
       var clipper = Ti.UI.createScrollView({
         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();
       
    Thanks.
  2. Richard Lustemberg 2018-06-18

    I think what the reporter meant is that setting clipMode to Titanium.UI.iOS.CLIP_MODE_DISABLED on a scrollableView doesn't work

JSON Source