Skip to content

Commit

Permalink
fixes #4671: mention collapsing parents in docs for affix plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Aug 27, 2012
1 parent 8610fd9 commit b444582
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ <h3>Via data attributes</h3>

<div class="alert alert-info">
<strong>Heads up!</strong>
It's up to you to manage the position of a pinned element. This is done by styling <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>.
You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.
</div>

<h3>Via JavaScript</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/templates/pages/javascript.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ $('.carousel').carousel({

<div class="alert alert-info">
<strong>{{_i}}Heads up!{{/i}}</strong>
{{_i}}It's up to you to manage the position of a pinned element. This is done by styling <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>.{{/i}}
{{_i}}You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.{{/i}}
</div>

<h3>{{_i}}Via JavaScript{{/i}}</h3>
Expand Down

0 comments on commit b444582

Please sign in to comment.