[TIMOB-1000] iOS: support pagingControlColor:'transparent' in scrollable view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-22T11:47:08.000+0000 |
Affected Version/s | Release 1.5.0 |
Fix Version/s | Release 2.1.0 |
Components | iOS |
Labels | module_scrollableview, qe-port |
Reporter | Nolan Wright |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:41:12.000+0000 |
Updated | 2013-01-21T21:41:10.000+0000 |
Couldn't find the ticket (Clicking the link takes me to the general list). Is this related to http://developer.appcelerator.com/helpdesk/view/24361">http://developer.appcelerator.com/helpdesk/view/24361 ?
Did this ever get fixed?
Hello, I made a design change in ScrollableView to accept the
PagingControl transparency.
In fact, the pagingControlColor already accepts 'transparent', the problem is in the area
rendered image, which is restricted to the total size of the Scrollable less
pagingControl size.
I did so to use in my project, edit TiUIScrollableView.m:
Change this line:
viewBounds.size.height = visibleBounds.size.height - (showPageControl ? pageControlHeight : 0);
to this:
viewBounds.size.height = visibleBounds.size.height; // - (showPageControl ? pageControlHeight : 0);
and Change this:
contentBounds.size.height = viewBounds.size.height - (showPageControl ? pageControlHeight : 0);
to this:
contentBounds.size.height = viewBounds.size.height; // - (showPageControl ? pageControlHeight : 0);
Hope this helps in solving this problem.
Blain, I don't know... DID this ever get fixed?
Transparent is supported as a valid color for pagingControl. In addition we now also support
pagingControlAlpha
property since 2.1.0Verified that pagingControlColor:'transparent' is supported and working fine for scrollableViews. Device tested: - iPhone 5 / iOS 6.0.2 - iPad 2 / iOS 4.3.5 TiSDK 3.0 GA and 3.0.X Sample code: