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

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 839
    • 189
  • Source
  • Commits
  • Network (189)
  • Graphs
  • Tree: df8d64a

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 (20)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.3
    • 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

Dailog: fixed #4254 - Dialog: undocumented dragHelper and resizeHelper options 
should be removed
rdworth (author)
Sat Feb 28 13:21:45 -0800 2009
commit  df8d64a36a3e68c086cc
tree    d3d761db8f9261cc0619
parent  5b00c217190538fc1e03
M ui/ui.dialog.js 8 ••••
Txt ui/ui.dialog.js
  • View file @ df8d64a
... ...
@@ -293,7 +293,8 @@ $.widget("ui.dialog", {
293 293
 
294 294
   _makeDraggable: function() {
295 295
     var self = this,
296  
-      options = this.options;
  296
+      options = this.options,
  297
+      heightBeforeDrag;
297 298
 
298 299
     this.uiDialog.draggable({
299 300
       cancel: '.ui-dialog-content',
... ...
@@ -301,12 +302,15 @@ $.widget("ui.dialog", {
301 302
       handle: '.ui-dialog-titlebar',
302 303
       containment: 'document',
303 304
       start: function() {
  305
+        heightBeforeDrag = options.height;
  306
+        $(this).height($(this).height()).addClass("ui-dialog-dragging");
304 307
         (options.dragStart && options.dragStart.apply(self.element[0], arguments));
305 308
       },
306 309
       drag: function() {
307 310
         (options.drag && options.drag.apply(self.element[0], arguments));
308 311
       },
309 312
       stop: function() {
  313
+        $(this).removeClass("ui-dialog-dragging").height(heightBeforeDrag);
310 314
         (options.dragStop && options.dragStop.apply(self.element[0], arguments));
311 315
         $.ui.dialog.overlay.resize();
312 316
       }
... ...
@@ -330,6 +334,7 @@ $.widget("ui.dialog", {
330 334
       minWidth: options.minWidth,
331 335
       minHeight: options.minHeight,
332 336
       start: function() {
  337
+        $(this).addClass("ui-dialog-resizing");
333 338
         (options.resizeStart && options.resizeStart.apply(self.element[0], arguments));
334 339
       },
335 340
       resize: function() {
... ...
@@ -337,6 +342,7 @@ $.widget("ui.dialog", {
337 342
       },
338 343
       handles: resizeHandles,
339 344
       stop: function() {
  345
+        $(this).removeClass("ui-dialog-resizing");
340 346
         (options.resizeStop && options.resizeStop.apply(self.element[0], arguments));
341 347
         $.ui.dialog.overlay.resize();
342 348
       }

0 notes on commit df8d64a

Please log in to comment.
Blog | Support | Training | Job Board | 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
  • 中文