Skip to content

Commit

Permalink
Improved documentation for the position property
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed Sep 3, 2019
1 parent 5f966c9 commit edf9834
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ $(document).ready(function() {
<code>// position the dialog box in center-top</code><br>
<code>// shifted 20 pixels down</code><br>
<code>['center', 'top + 20']</code><br><br>
<blockquote>Note that when the width of the viewport is less than 768 pixels, any arithmetics will be ignored (so, things like <code>left + 20</code> will be interpreted as just <code>left</code>)</blockquote>
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions dist/zebra_dialog.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@
// ['center', 'top + 20'] would position the dialog box in
// center-top, shifted 20 pixels down.
//
// Note that when the width of the viewport is less than
// 768 pixels, any arithmetics will be ignored (so, things
// like "left + 20" will be read as just "left")
//
// Default is "center" (equivalent with ['center', 'center']).

reposition_speed: 500, // The duration (in milliseconds) of the animation used to
Expand Down
4 changes: 4 additions & 0 deletions src/zebra_dialog.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@
// ['center', 'top + 20'] would position the dialog box in
// center-top, shifted 20 pixels down.
//
// Note that when the width of the viewport is less than
// 768 pixels, any arithmetics will be ignored (so, things
// like "left + 20" will be read as just "left")
//
// Default is "center" (equivalent with ['center', 'center']).

reposition_speed: 500, // The duration (in milliseconds) of the animation used to
Expand Down

0 comments on commit edf9834

Please sign in to comment.