motion-flow 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: a1fc583f1f2d9aafab67995dccc00855398e73e8
4
- data.tar.gz: 4be8562c6388b93da40411fc72d6564487bea763
3
+ metadata.gz: 400155a6e402c8d31d6e2afd6384858947dec126
4
+ data.tar.gz: 0ea5cf9cb3bfe5b9ec90f3184b8a01e6f6809e4c
5
5
  SHA512:
6
- metadata.gz: 12f7ce6ce0010fc01c2b2d3264e096a2d184befa990bba2057121e9a300299b96d850e6647d89c35d9a0f11c099792d15a3b8058cfccb92ab8c039169ac93033
7
- data.tar.gz: af8d5ad2d8fd996a0af286d80b2bbd02d363556a0c6e02445e3a902fb9ef434faca02b7b19f91812d7c4457bf3f58b66e5b5cf1b1b6fb0339a0be75a8349af0a
6
+ metadata.gz: 11e5b60bb847a7ec9c544208cb935af24c2e3b31eb2abb40089bf7bddd04b2ad6f7d3a992aedac2622ea295ee9705142ed65416ddcc47b50b71fd525bd383378
7
+ data.tar.gz: 52e4af9ca84c0a0e79fcac5cdfc34142b6403e34291c6cdbee0ea23f3c9be3667282e237277384fe499d88e30c5b72f11041217f4aa9a54bd9b18ce1ada8a48f
@@ -29,13 +29,18 @@ module UI
29
29
 
30
30
  def hidden=(value)
31
31
  if hidden
32
- self._previous_width = self.width
33
- self._previous_height = self.height
34
- self.width = 0
35
- self.height = 0
32
+ if !self.width.nan?
33
+ self._previous_width = self.width
34
+ self.width = 0
35
+ end
36
+
37
+ if !self.height.nan?
38
+ self._previous_height = self.height
39
+ self.height = 0
40
+ end
36
41
  else
37
- self.width = self._previous_width
38
- self.height = self._previous_height
42
+ self.width = self._previous_width if self._previous_width
43
+ self.height = self._previous_height if self._previous_height
39
44
  end
40
45
 
41
46
  proxy.visibility = value ? Android::View::View::INVISIBLE : Android::View::View::VISIBLE
@@ -60,13 +60,18 @@ module UI
60
60
 
61
61
  def hidden=(hidden)
62
62
  if hidden
63
- self._previous_width = self.width
64
- self._previous_height = self.height
65
- self.width = 0
66
- self.height = 0
63
+ if !self.width.nan?
64
+ self._previous_width = self.width
65
+ self.width = 0
66
+ end
67
+
68
+ if !self.height.nan?
69
+ self._previous_height = self.height
70
+ self.height = 0
71
+ end
67
72
  else
68
- self.width = self._previous_width
69
- self.height = self._previous_height
73
+ self.width = self._previous_width if self._previous_width
74
+ self.height = self._previous_height if self._previous_height
70
75
  end
71
76
 
72
77
  proxy.hidden = hidden
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - HipByte