romo 0.20.1 → 0.20.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA512:
3
- metadata.gz: a6fd9a5bcbadfca0e0ecacfcee10ccc0e2be2417ec86612a3c17b119de68819683229f6eb84fa9342eaa801c2a8e09f00f3030bb455b3f9fd0ca22651c7a4be9
4
- data.tar.gz: 042f45707374689346fc7ef9ff25aeef724c2e5b35923942bb7da3c9215274bb8e3493d700a33ed8b2a995d8daccfee10f0664a119025e30f48204f83b0883bc
5
2
  SHA1:
6
- metadata.gz: d706f352079822fd3b5029ff291113174f13fbd3
7
- data.tar.gz: bfb7ba99253ced27d7e8762d34e937c574f4a8cd
3
+ data.tar.gz: 89e575f03b43f16e3927cc1f958a4718ff648089
4
+ metadata.gz: ea5d713b6ee5b092310182c0747edcde693446f7
5
+ SHA512:
6
+ data.tar.gz: 1f1172441b52cdfea8179be2ee719c8e958f7c4a4e9a9a85f50792d473312aa12c3ee20c6584bd9a6fa6709e9d1fb25c0b493f1c3d327646aabe9b2d3c620cd9
7
+ metadata.gz: 5d420f9833b709e489752d41408883c3bab3b334a7f7b4dfcae3afc2f08d3ba72190b7fc8194c9380860f592d402b6e0181f44258f07ccf83773201e7655f619
@@ -243,11 +243,19 @@ Romo.prototype.hide = function(elems) {
243
243
  }
244
244
 
245
245
  Romo.prototype.height = function(elem) {
246
- return elem.getBoundingClientRect().height;
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
- return elem.getBoundingClientRect().width;
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
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.20.1"
2
+ VERSION = "0.20.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding