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: d03fb7db1ba740c753b18ba28d4f107a3cf64df060224b92f34cd1973132bcca
4
- data.tar.gz: e61d85e7cf871e4ee369c53928f8b71914894bc2223640dcb4d678a03ac5dda9
3
+ metadata.gz: 032a86086504f8c412e82ef62eb31bd7447655e4a650e908cd8e4977e130120f
4
+ data.tar.gz: 6461e3d90bcb1b5ad9a0800bf220c3aa23153804ba766c9525ab250a5380d4d7
5
5
  SHA512:
6
- metadata.gz: c875b4bc4e68bd5aec361e19197005a73c98e8b5febf416c9eb2eb1ea0ad28bfac283d570d91bb1069d9b9bbcc48ab12a92b1d3d1ff0bfa52e4ff411c51765de
7
- data.tar.gz: 7bb93c94b22eeae957922a018a3c2b5d16a81eaeadf9aa89047d62499f746e890beaaa3a8dad39c0084cfe64367aeb0c60667bdd73a1d7dd276b82eaacc7cd18
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`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsModalManager
4
- VERSION = "1.0.21"
4
+ VERSION = "1.0.22"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_modal_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - reshacs