Menu: Fixed variable name.

This commit is contained in:
Scott González 2011-05-11 08:43:37 -04:00
parent 24864de57d
commit b70256c368

View File

@ -237,8 +237,8 @@ $.widget("ui.menu", {
if ( this._hasScroll() ) { if ( this._hasScroll() ) {
var borderTop = parseFloat( $.curCSS( this.element[0], "borderTopWidth", true) ) || 0, var borderTop = parseFloat( $.curCSS( this.element[0], "borderTopWidth", true) ) || 0,
paddingtop = parseFloat( $.curCSS( this.element[0], "paddingTop", true) ) || 0, paddingTop = parseFloat( $.curCSS( this.element[0], "paddingTop", true) ) || 0,
offset = item.offset().top - this.element.offset().top - borderTop - paddingtop, offset = item.offset().top - this.element.offset().top - borderTop - paddingTop,
scroll = this.element.scrollTop(), scroll = this.element.scrollTop(),
elementHeight = this.element.height(), elementHeight = this.element.height(),
itemHeight = item.height(); itemHeight = item.height();