[TIMOB-13476] iOS 5: Image resize broken
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-11T20:53:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 08 API, 2013 Sprint 08, Release 3.2.0 |
Components | iOS |
Labels | n/a |
Reporter | Martin Guillon |
Assignee | Vishal Duggal |
Created | 2013-01-02T11:27:43.000+0000 |
Updated | 2013-10-25T18:31:15.000+0000 |
Description
Since this commit: https://github.com/vishalduggal/titanium_mobile/commit/a5b7828d980a36d298cb48ecba79971426f6a162
The resize of background image for button has changed on iOS 5. It does not resize the center by stretching but by tiling it.
Looking at the commit there should be a test for uisGreater than 5 but only for the respondToSelector which follows.
Can you post a sample code? Which version(s) of the SDK do work for you, and which ones don't?
it s been fixed: https://github.com/vishalduggal/titanium_mobile/commit/5d8a5edcb48aba8ed2580bfb4edc5b850f980ebc But if I may it s 2 "if" when only one was necessary Just test for the method and not ios5 and you are good
Resolved as fixed.. I doubt we'll have time to change if statements for the sake of cleanliness, as long as it works. Not sure what you meant by "Just test for the method and not ios5 and you are good".
I get it s not a priority and i did it in my branch, so i am good ;) In the code we have 2 nested if case
There s redondancy you can simply do it that way
This is the inner if condition right now with all the calculation in the outer if loop.
Yes Vishal but you dont need the ios5 test on top of it