@finqu/cool 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/cool-grid.css +2 -2
- package/dist/css/cool-grid.css.map +2 -2
- package/dist/css/cool-grid.min.css +1 -1
- package/dist/css/cool-grid.min.css.map +1 -1
- package/dist/css/cool-reboot.css +2 -2
- package/dist/css/cool-reboot.css.map +2 -2
- package/dist/css/cool-reboot.min.css +1 -1
- package/dist/css/cool-reboot.min.css.map +1 -1
- package/dist/css/cool.css +80 -45
- package/dist/css/cool.css.map +5 -5
- package/dist/css/cool.min.css +2 -2
- package/dist/css/cool.min.css.map +1 -1
- package/dist/js/cool.bundle.js +7 -8
- package/dist/js/cool.bundle.js.map +1 -1
- package/dist/js/cool.bundle.min.js +2 -2
- package/dist/js/cool.bundle.min.js.map +1 -1
- package/dist/js/cool.esm.js +7 -8
- package/dist/js/cool.esm.js.map +1 -1
- package/dist/js/cool.esm.min.js +2 -2
- package/dist/js/cool.esm.min.js.map +1 -1
- package/dist/js/cool.js +7 -8
- package/dist/js/cool.js.map +1 -1
- package/dist/js/cool.min.js +2 -2
- package/dist/js/cool.min.js.map +1 -1
- package/html/index.html +31 -0
- package/js/dist/collapse.js +1 -1
- package/js/dist/common.js +1 -1
- package/js/dist/dropdown.js +685 -698
- package/js/dist/dropdown.js.map +1 -1
- package/js/dist/popover.js +1 -1
- package/js/dist/sectiontabs.js +1 -1
- package/js/dist/select.js +1 -1
- package/js/dist/tooltip.js +1 -1
- package/js/src/dropdown.js +10 -7
- package/package.json +1 -1
- package/scss/_buttons.scss +3 -0
- package/scss/_section.scss +32 -0
- package/scss/_variables.scss +1 -1
- package/scss/cool-grid.scss +1 -1
- package/scss/cool-reboot.scss +1 -1
- package/scss/cool.scss +1 -1
package/dist/js/cool.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Cool UI v1.2.
|
|
2
|
+
* Cool UI v1.2.4 (https://finqu.fi)
|
|
3
3
|
* Copyright 2011-2019 Finqu Oy
|
|
4
4
|
* Licensed under the ISC license - (http://opensource.org/licenses/ISC)
|
|
5
5
|
*/
|
|
@@ -3395,20 +3395,19 @@ function (_AbstractUIComponent) {
|
|
|
3395
3395
|
dropdownPosY += parseInt(offsetY, 10);
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
-
if (this.positionObserver) {
|
|
3398
|
+
if (this.positionObserver && this.$container.length > 0) {
|
|
3399
3399
|
// this is not set during init so we have to fetch it
|
|
3400
3400
|
// and let's assume that this containing parent fits and is inside
|
|
3401
3401
|
// viewport
|
|
3402
|
-
var $containingParent =
|
|
3402
|
+
var $containingParent = this.$container.parent();
|
|
3403
3403
|
|
|
3404
|
-
|
|
3405
|
-
$containingParent = $containingParent
|
|
3404
|
+
while ($containingParent.css('overflow-x') !== 'hidden' && $containingParent.css('overflow') !== 'hidden' && ($containingParent.prop('tagName') || '').toLowerCase() !== 'body') {
|
|
3405
|
+
$containingParent = $containingParent.parent();
|
|
3406
3406
|
|
|
3407
3407
|
if (!$containingParent) {
|
|
3408
|
-
|
|
3409
|
-
break;
|
|
3408
|
+
return;
|
|
3410
3409
|
}
|
|
3411
|
-
}
|
|
3410
|
+
}
|
|
3412
3411
|
|
|
3413
3412
|
var containingBoundingRect = $containingParent.get(0).getBoundingClientRect();
|
|
3414
3413
|
var containerBoundingRect = this.$container.get(0).getBoundingClientRect();
|