mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 01:24:19 +02:00
Follow-up to e2cfbd5
: Fix spaces in placement calculation
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user