lato 3.13.10 → 3.13.11

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: d8449636bde7d7bc0be448c50fe0ad890cb9dfba72b46871bfaeb866fb96602d
4
- data.tar.gz: c4ebe4f7e7f0cec63b96a62a766e7f75a33627ab63b6f72e3d231054743ab812
3
+ metadata.gz: f8c09f1550b6a5e0adbfaed391511cfd9cc7f0f421d4d1ff67d1695c9c4823b0
4
+ data.tar.gz: 35ff7291582aa1d0a488b497d515b6fdd106a41cbc28226d454d105d70ea2328
5
5
  SHA512:
6
- metadata.gz: d17dcc82d7a0e7e3077d601859e15dff5c556d124612050caf004875b592824471970d75320f71b47b6ecf365548dbee0838fe28052acc59ca476ac2f6b6478d
7
- data.tar.gz: f0c8d152ad2a84969691a87ce37b27df6c946b5fe99d06d6167a63328cfa99147d60ab9951c4062d67b2748603a1377768adeeef0e1bb81d8b6870b6da0d0f90
6
+ metadata.gz: 3c5e5675d65e1a9853bbc4eeb2cc47999343fbcb20964344259fe652a5c63d2d0d5b896c8013565f7af40b52e00e9048739a7ac0650d5e7fcedef34ed341e54e
7
+ data.tar.gz: 31a617fda2fe937e0f44bcce4f0e586875217f636e838c09f57570c994e165234d09901aec45028ad6d922c13b81ffb8290677853c47278b8e9df831de0b7641
@@ -86,7 +86,7 @@ export default class extends Controller {
86
86
  suggestShow(data = []) {
87
87
  if (this.optionsList) this.optionsList.remove()
88
88
  this.optionsList = document.createElement('ul')
89
- this.optionsList.classList.add('list-group')
89
+ this.optionsList.classList.add('list-group', 'border')
90
90
  this.optionsList.style.position = 'fixed'
91
91
  this.optionsList.style.width = this.element.offsetWidth + 'px'
92
92
  this.optionsList.style.maxHeight = '200px'
@@ -127,6 +127,14 @@ export default class extends Controller {
127
127
  if (this.optionsList) this.optionsList.remove()
128
128
  }
129
129
 
130
+ suggestReposition() {
131
+ if (!this.optionsList) return
132
+
133
+ const elementRect = this.element.getBoundingClientRect()
134
+ this.optionsList.style.top = elementRect.bottom + 'px'
135
+ this.optionsList.style.left = elementRect.left + 'px'
136
+ }
137
+
130
138
  async setDefaultElementValue() {
131
139
  try {
132
140
  const url = new URL(this.pathValue, window.location.origin)
@@ -146,10 +154,10 @@ export default class extends Controller {
146
154
  }
147
155
 
148
156
  onWindowScroll(event) {
149
- this.suggestHide()
157
+ this.suggestReposition()
150
158
  }
151
159
 
152
160
  onWindowResize(event) {
153
- this.suggestHide()
161
+ this.suggestReposition()
154
162
  }
155
163
  }
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.13.10"
2
+ VERSION = "3.13.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.10
4
+ version: 3.13.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-11 00:00:00.000000000 Z
11
+ date: 2025-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails