fix: [bootstrap-helper] Better positioning if container has the row class

pull/72/head
Sami Mokaddem 2021-10-18 13:07:18 +02:00
parent 3ea877fe10
commit 24fbe36f34
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -899,6 +899,9 @@ class OverlayFactory {
const boundingRect = this.$node[0].getBoundingClientRect()
this.$overlayWrapper.css('min-height', Math.max(boundingRect.height, 20))
this.$overlayWrapper.css('min-width', Math.max(boundingRect.width, 20))
if (this.$node.hasClass('row')) {
this.$overlayWrapper.addClass('row')
}
}
this.$overlayContainer = $(OverlayFactory.overlayContainer)
this.$overlayBg = $(OverlayFactory.overlayBg)