[TIMOB-7463] MobileWeb: Split CalculateSize into two methods for layout and animations.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-16T17:57:14.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-04, Release 2.0.0 |
Components | MobileWeb |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Chris Barber |
Created | 2012-01-29T22:56:27.000+0000 |
Updated | 2017-03-04T00:22:07.000+0000 |
Description
Right now, animations and call CalculateSize to convert the coordinates into ones that are layout-compatible. This call actually causes some controls to be re-layed out. While it doesn't cause any visual artifacting, it is inefficient. The method should be split into two versions that are each optimized for layout and animation.
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1452
It wasn't necessary to split into two methods. A refactoring fixed it while keeping code reuse high.
Closing ticket due to MobileWeb no longer being supported.