Pass integer instead of string

Change-Id: I8b831108d6f40a2e764fbbd46f4241530d7f6153
This commit is contained in:
Siebrand Mazeland
2013-07-08 14:32:25 +02:00
parent b5b6aa15f4
commit 160ee87f15

View File

@@ -340,15 +340,15 @@
// Calculate the positioning of the panel // Calculate the positioning of the panel
// according to the position of the trigger icon // according to the position of the trigger icon
if ( rtlPage ) { if ( rtlPage ) {
caretWidth = parseInt( $caretBefore.css( 'border-left-width' ), '10' ); caretWidth = parseInt( $caretBefore.css( 'border-left-width' ), 10 );
this.left = ulsTriggerOffset.left - this.$window.width() - caretWidth; this.left = ulsTriggerOffset.left - this.$window.width() - caretWidth;
} else { } else {
caretWidth = parseInt( $caretBefore.css( 'border-right-width' ), '10' ); caretWidth = parseInt( $caretBefore.css( 'border-right-width' ), 10 );
this.left = ulsTriggerOffset.left + ulsTriggerWidth + caretWidth; this.left = ulsTriggerOffset.left + ulsTriggerWidth + caretWidth;
} }
topRowHeight = this.$window.find( '.row' ).height(); topRowHeight = this.$window.find( '.row' ).height();
caretHeight = parseInt( $caretBefore.css( 'top' ), '10' ); caretHeight = parseInt( $caretBefore.css( 'top' ), 10 );
this.top = ulsTriggerOffset.top - topRowHeight - caretHeight / 2; this.top = ulsTriggerOffset.top - topRowHeight - caretHeight / 2;
this.position(); this.position();