]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: Replace double space with single space.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 2 Aug 2013 11:15:58 +0000 (13:15 +0200)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Nov 2013 16:32:24 +0000 (11:32 -0500)
(cherry picked from commit a3770884ac997169b810b3f6fda6df54a9cbbeeb)

ui/jquery.ui.position.js

index d45b24bb168c0752eee0b5de60b779d9e04ae8d6..21c3cef1b19a46b3ddba23122c1389902a6f1d53 100644 (file)
@@ -436,7 +436,7 @@ $.ui.position = {
                                }
                        }
                        else if ( overBottom > 0 ) {
-                               newOverTop = position.top -  data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
+                               newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
                                if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
                                        position.top += myOffset + atOffset + offset;
                                }