From 110e58e48e2360228e676b931ef5b8f7b6534b08 Mon Sep 17 00:00:00 2001 From: Paul Cortens Date: Tue, 16 Jul 2013 17:49:38 -0700 Subject: [PATCH] Attempt to fix issue [#558] [Regression] Asymmetrical tip dimensions render incorrectly. --- src/tips/tips.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tips/tips.js b/src/tips/tips.js index 50ab9ad1..37045f64 100644 --- a/src/tips/tips.js +++ b/src/tips/tips.js @@ -181,8 +181,8 @@ $.extend(Tip.prototype, { _calculateSize: function(corner) { var y = corner.precedance === Y, - width = this.options[ y ? 'height' : 'width' ], - height = this.options[ y ? 'width' : 'height' ], + width = this.options['width'], + height = this.options['height'], isCenter = corner.abbrev() === 'c', base = width * (isCenter ? 0.5 : 1), pow = Math.pow,