Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-68] Scroll view must update when DOM is updated

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:51:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 0.6.0
ComponentsiOS
Labelsn/a
ReporterKevin Whinnery
AssigneeBlain Hamon
Created2011-04-15T02:23:18.000+0000
Updated2011-04-17T01:51:52.000+0000

Description

Ran into an issue where if new elements are added to the DOM that need to make the view scrollable (as in a number of results retrieved from an Ajax call like in the Yelpr example app), the scroll view containing the web view needs to be resized to match.

Workaround is to pre-size the body tag to accommodate the results. Real fix is to have some kind of event listener for when the DOM is modified so the scroll view can be resized. Spoke to Blain about it over IRC, also reported in the following support ticket:

http://support.appcelerator.net/discussions/titanium-mobile-discussion/111-page-locking-up-after-ajax-request"> http://support.appcelerator.net/discussions/titanium-mobile-discuss...

Comments

  1. Nikolai Derzhak 2011-04-15

    rollback wrong update

JSON Source