github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 780
    • 165
  • Source
  • Commits
  • Network (165)
  • Graphs
  • Tree: 96e78a2

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (19)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Dialog: Updated test for default position option. QUnit still fails the test 
though.
scottgonzalez (author)
Wed Jul 14 13:38:16 -0700 2010
commit  96e78a2cb7968fead62c
tree    244ff1c7e0f338cd6233
parent  6de9a5368c3e0523f91f
M tests/unit/dialog/dialog_defaults.js 14 ••••
Txt tests/unit/dialog/dialog_defaults.js
  • View file @ 96e78a2
... ...
@@ -17,7 +17,19 @@ var dialog_defaults = {
17 17
   minHeight: 150,
18 18
   minWidth: 150,
19 19
   modal: false,
20  
-  position: 'center',
  20
+  position: {
  21
+    my: 'center',
  22
+    at: 'center',
  23
+    of: window,
  24
+    collision: 'fit',
  25
+    // ensure that the titlebar is never outside the document
  26
+    using: function(pos) {
  27
+      var topOffset = $(this).css(pos).offset().top;
  28
+      if (topOffset < 0) {
  29
+        $(this).css('top', pos.top - topOffset);
  30
+      }
  31
+    }
  32
+  },
21 33
   resizable: true,
22 34
   show: null,
23 35
   stack: true,

2 notes on commit 96e78a2

bostanio added a note to 96e78a2

Fri Jul 16 18:49:58 -0700 2010

I have a fix for this test framework that will fix this failing test. I'll put it up and send the pull request soon.

jzaefferer added a note to 96e78a2 repo collab

Sat Jul 17 05:04:39 -0700 2010

@bostanio: Send requests about QUnit to http://github.com/jquery/qunit

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska