Commit 95e0f48e authored by Heinrich Fenkart's avatar Heinrich Fenkart

Follow-up to e2cfbd5f: Fix spaces in placement calculation

parent e2cfbd5f
...@@ -191,10 +191,10 @@ ...@@ -191,10 +191,10 @@
var $container = this.options.container ? $(this.options.container) : this.$element.parent() var $container = this.options.container ? $(this.options.container) : this.$element.parent()
var containerDim = this.getPosition($container) var containerDim = this.getPosition($container)
placement = placement == 'bottom' && pos.bottom + actualHeight > containerDim.bottom ? 'top' : placement = placement == 'bottom' && pos.bottom + actualHeight > containerDim.bottom ? 'top' :
placement == 'top' && pos.top - actualHeight < containerDim.top ? 'bottom' : placement == 'top' && pos.top - actualHeight < containerDim.top ? 'bottom' :
placement == 'right' && pos.right + actualWidth > containerDim.width ? 'left' : placement == 'right' && pos.right + actualWidth > containerDim.width ? 'left' :
placement == 'left' && pos.left - actualWidth < containerDim.left ? 'right' : placement == 'left' && pos.left - actualWidth < containerDim.left ? 'right' :
placement placement
$tip $tip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment