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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c09f1550b6a5e0adbfaed391511cfd9cc7f0f421d4d1ff67d1695c9c4823b0
|
4
|
+
data.tar.gz: 35ff7291582aa1d0a488b497d515b6fdd106a41cbc28226d454d105d70ea2328
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
157
|
+
this.suggestReposition()
|
150
158
|
}
|
151
159
|
|
152
160
|
onWindowResize(event) {
|
153
|
-
this.
|
161
|
+
this.suggestReposition()
|
154
162
|
}
|
155
163
|
}
|
data/lib/lato/version.rb
CHANGED
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.
|
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
|
+
date: 2025-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|