romo 0.20.1 → 0.20.2
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 +5 -5
- data/assets/js/romo/base.js +10 -2
- data/lib/romo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
SHA512:
|
|
3
|
-
metadata.gz: a6fd9a5bcbadfca0e0ecacfcee10ccc0e2be2417ec86612a3c17b119de68819683229f6eb84fa9342eaa801c2a8e09f00f3030bb455b3f9fd0ca22651c7a4be9
|
|
4
|
-
data.tar.gz: 042f45707374689346fc7ef9ff25aeef724c2e5b35923942bb7da3c9215274bb8e3493d700a33ed8b2a995d8daccfee10f0664a119025e30f48204f83b0883bc
|
|
5
2
|
SHA1:
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
data.tar.gz: 89e575f03b43f16e3927cc1f958a4718ff648089
|
|
4
|
+
metadata.gz: ea5d713b6ee5b092310182c0747edcde693446f7
|
|
5
|
+
SHA512:
|
|
6
|
+
data.tar.gz: 1f1172441b52cdfea8179be2ee719c8e958f7c4a4e9a9a85f50792d473312aa12c3ee20c6584bd9a6fa6709e9d1fb25c0b493f1c3d327646aabe9b2d3c620cd9
|
|
7
|
+
metadata.gz: 5d420f9833b709e489752d41408883c3bab3b334a7f7b4dfcae3afc2f08d3ba72190b7fc8194c9380860f592d402b6e0181f44258f07ccf83773201e7655f619
|
data/assets/js/romo/base.js
CHANGED
|
@@ -243,11 +243,19 @@ Romo.prototype.hide = function(elems) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
Romo.prototype.height = function(elem) {
|
|
246
|
-
|
|
246
|
+
var height = elem.getBoundingClientRect().height;
|
|
247
|
+
if (height === 0) {
|
|
248
|
+
height = parseInt(Romo.css(elem, 'height'), 10);
|
|
249
|
+
}
|
|
250
|
+
return height;
|
|
247
251
|
}
|
|
248
252
|
|
|
249
253
|
Romo.prototype.width = function(elem) {
|
|
250
|
-
|
|
254
|
+
var width = elem.getBoundingClientRect().width;
|
|
255
|
+
if (width === 0) {
|
|
256
|
+
width = parseInt(Romo.css(elem, 'width'), 10);
|
|
257
|
+
}
|
|
258
|
+
return width;
|
|
251
259
|
}
|
|
252
260
|
|
|
253
261
|
Romo.prototype.offset = function(elem) {
|
data/lib/romo/version.rb
CHANGED