Browse files

Docs (popup): adjusted the info about programmatically setting the po…

…pup position.
  • Loading branch information...
1 parent 7c67a2f commit f2b989c432e7f8a65f5605c2569f0db0d3ab0c31 @jaspermdegroot jaspermdegroot committed Aug 27, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 docs/pages/popup/index.html
@@ -263,15 +263,7 @@ <h3 class="ui-title">Are you sure you want to delete this page?</h3>
<li>If centering the popup over an element would cause the overall height of the document to increase, the popup is shifted upwards at most until its top coordinate becomes 0.</li>
- <p>To programmatically make use of the popup's positioning functionality (and any features made available by specifying <code>data-*</code> options on links), set the corresponding keys in the options object passed to <code>open()</code>:</p>
-$( ".selector" ).popup( "open", {
- positionTo: "window",
- transition: "slide"
- <p>The above will cause the popup to open and close with a slide transition, and to position itself centered in the window.</p>
+ <p>See <a href="methods.html">methods</a> for information about setting the popup position programmatically, including the option to specify <strong>x and y coordinates</strong>.
<h2>Setting transitions</h2>
<p>By default, popups have no transition to make them open as quickly as possible. To set the transition used for a popup, add the <code>data-transition</code> attribute to the link that references the popup. The reverse version of the transition will be used when closing the popup.</p>

0 comments on commit f2b989c

Please sign in to comment.