@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.bundle.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
|
*/
|
|
@@ -3399,20 +3399,19 @@
|
|
|
3399
3399
|
dropdownPosY += parseInt(offsetY, 10);
|
|
3400
3400
|
}
|
|
3401
3401
|
|
|
3402
|
-
if (this.positionObserver) {
|
|
3402
|
+
if (this.positionObserver && this.$container.length > 0) {
|
|
3403
3403
|
// this is not set during init so we have to fetch it
|
|
3404
3404
|
// and let's assume that this containing parent fits and is inside
|
|
3405
3405
|
// viewport
|
|
3406
|
-
var $containingParent =
|
|
3406
|
+
var $containingParent = this.$container.parent();
|
|
3407
3407
|
|
|
3408
|
-
|
|
3409
|
-
$containingParent = $containingParent
|
|
3408
|
+
while ($containingParent.css('overflow-x') !== 'hidden' && $containingParent.css('overflow') !== 'hidden' && ($containingParent.prop('tagName') || '').toLowerCase() !== 'body') {
|
|
3409
|
+
$containingParent = $containingParent.parent();
|
|
3410
3410
|
|
|
3411
3411
|
if (!$containingParent) {
|
|
3412
|
-
|
|
3413
|
-
break;
|
|
3412
|
+
return;
|
|
3414
3413
|
}
|
|
3415
|
-
}
|
|
3414
|
+
}
|
|
3416
3415
|
|
|
3417
3416
|
var containingBoundingRect = $containingParent.get(0).getBoundingClientRect();
|
|
3418
3417
|
var containerBoundingRect = this.$container.get(0).getBoundingClientRect();
|