Skip to content

Commit 931c147

Browse files
committed
Documentation fix for jquery-archive#2914 - Layout events .trigger('updatelayout'); doesn't work with delay/speed
- Updated verbage in the 'updatelayout' section so that it is clearer that developers should trigger this event if their application manipulates the content in any way that may trigger a change in the width/height of the page.
1 parent 3503681 commit 931c147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ <h2>Page remove events</h2>
466466
</dl>
467467

468468
<h2>Layout events</h2>
469-
<p>Some components within the framework, such as collapsible and listview search, dynamically hide and show content based on user events. This hiding/showing of content affects the size of the page and may result in the browser adjusting/scrolling the viewport to accommodate the new page size. Since this has the potential to affect other components such as fixed headers and footers, components like collapsible and listview trigger a custom <code>updatelayout</code> event to notify other components that they may need to adjust their layouts in response to their content changes. Developers who are building dynamic applications that inject content into the current page can also manually trigger this <code>updatelayout</code> event to ensure components on the page update in response to the new content that was just added.</p>
469+
<p>Some components within the framework, such as collapsible and listview search, dynamically hide and show content based on user events. This hiding/showing of content affects the size of the page and may result in the browser adjusting/scrolling the viewport to accommodate the new page size. Since this has the potential to affect other components such as fixed headers and footers, components like collapsible and listview trigger a custom <code>updatelayout</code> event to notify other components that they may need to adjust their layouts in response to their content changes. Developers who are building dynamic applications that dynamically inject, hide, or remove content from the page, or manipulate it in any way that affects the dimensions of the page, can also manually trigger this <code>updatelayout</code> event to ensure components on the page update in response to the changes.</p>
470470
<dl>
471471
<dt><code>updatelayout</code></dt>
472472
<dd>This event is triggered by components within the framework that dynamically show/hide content, and is meant as a generic mechanism to notify other components that they may need to update their size or position. Within the framework, this event is fired on the component element whose content was shown/hidden, and bubbles all the way up to the document element.

0 commit comments

Comments
 (0)