Permalink
Browse files

Popup docs - fixed the position-to attribute description

SHould say "add to the popup", not the link
  • Loading branch information...
1 parent 5fd5b78 commit 145a9e230793823033253c77e011776e3689a903 @toddparker toddparker committed Jul 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/pages/popup/index.html
@@ -136,7 +136,7 @@ <h2>Adding padding</h2>
<h2>Positioning options</h2>
<p>By default, popups open centered vertically and horizontally over the thing you clicked (origin) which is good for popups used as tooltips or menus. The frameworks also applies some basic collision detection rules to ensure that the popup will appear on-screen so the ultimate position be not always be centered over the origin.</p>
- <p>For situations like a dialog or lightbox where the popup should appear centered within the window instead of over the origin, add the <code>data-position-to</code> attribute to the link that references the popup and specify a value of <code>window</code>. </p>
+ <p>For situations like a dialog or lightbox where the popup should appear centered within the window instead of over the origin, add the <code>data-position-to</code> attribute to the popup container and specify a value of <code>window</code>. </p>
<pre><code>
&lt;div data-role=&quot;popup&quot; id=&quot;positionWindow&quot; <strong>data-position-to=&quot;window&quot;</strong> &gt;

0 comments on commit 145a9e2

Please sign in to comment.