aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-11 08:43:37 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-11 08:43:37 -0400
commitb70256c368096d440b58a60280a2478c0b579ae9 (patch)
treea818826d430bf7fd3beb9ea027a9ae4e05255abd /ui/jquery.ui.menu.js
parent24864de57d9cbfb648c06a26af6a3872d9a14496 (diff)
downloadjquery-ui-b70256c368096d440b58a60280a2478c0b579ae9.tar.gz
jquery-ui-b70256c368096d440b58a60280a2478c0b579ae9.zip
Menu: Fixed variable name.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 6126b4da9..0848c6e67 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -237,8 +237,8 @@ $.widget("ui.menu", {
if ( this._hasScroll() ) {
var borderTop = parseFloat( $.curCSS( this.element[0], "borderTopWidth", true) ) || 0,
- paddingtop = parseFloat( $.curCSS( this.element[0], "paddingTop", true) ) || 0,
- offset = item.offset().top - this.element.offset().top - borderTop - paddingtop,
+ paddingTop = parseFloat( $.curCSS( this.element[0], "paddingTop", true) ) || 0,
+ offset = item.offset().top - this.element.offset().top - borderTop - paddingTop,
scroll = this.element.scrollTop(),
elementHeight = this.element.height(),
itemHeight = item.height();