rails_modal_manager 1.0.21 → 1.0.22
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 032a86086504f8c412e82ef62eb31bd7447655e4a650e908cd8e4977e130120f
|
|
4
|
+
data.tar.gz: 6461e3d90bcb1b5ad9a0800bf220c3aa23153804ba766c9525ab250a5380d4d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1657eb5b735b2a9ca6d602250a7d0929ab0cb0de155f3c8549aebce77d01d7311abfd5caed4f0f3c7a2262882320ffe9a410a933e6366e352d57a357d9fa5d05
|
|
7
|
+
data.tar.gz: cc5ed42014d8ea7011b940bf01d4471359de3a65f81096e032dbf1dbf750567754332bb26169aa92e7d8d4426ebc2f62897d34afd095f51680027d24a576b099
|
|
@@ -431,8 +431,6 @@ export default class extends Controller {
|
|
|
431
431
|
modal.style.margin = '0'
|
|
432
432
|
} else {
|
|
433
433
|
// Reset full-size specific styles
|
|
434
|
-
modal.style.right = ''
|
|
435
|
-
modal.style.bottom = ''
|
|
436
434
|
modal.style.borderRadius = ''
|
|
437
435
|
modal.style.margin = ''
|
|
438
436
|
modal.style.maxHeight = ''
|
|
@@ -454,6 +452,13 @@ export default class extends Controller {
|
|
|
454
452
|
modal.style.height = ''
|
|
455
453
|
}
|
|
456
454
|
|
|
455
|
+
// Reset all position styles before applying new position
|
|
456
|
+
modal.style.top = ''
|
|
457
|
+
modal.style.left = ''
|
|
458
|
+
modal.style.right = ''
|
|
459
|
+
modal.style.bottom = ''
|
|
460
|
+
modal.style.transform = ''
|
|
461
|
+
|
|
457
462
|
// Apply position
|
|
458
463
|
if (config.customPosition) {
|
|
459
464
|
modal.style.top = `${config.customPosition.top}px`
|