Fixed a coordinate conversion bug when collapsing layers on iOS. Fixed issue #55.