motion-flow 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flow/ui/android/view.rb +11 -6
- data/flow/ui/cocoa/view.rb +11 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 400155a6e402c8d31d6e2afd6384858947dec126
|
4
|
+
data.tar.gz: 0ea5cf9cb3bfe5b9ec90f3184b8a01e6f6809e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e5b60bb847a7ec9c544208cb935af24c2e3b31eb2abb40089bf7bddd04b2ad6f7d3a992aedac2622ea295ee9705142ed65416ddcc47b50b71fd525bd383378
|
7
|
+
data.tar.gz: 52e4af9ca84c0a0e79fcac5cdfc34142b6403e34291c6cdbee0ea23f3c9be3667282e237277384fe499d88e30c5b72f11041217f4aa9a54bd9b18ce1ada8a48f
|
data/flow/ui/android/view.rb
CHANGED
@@ -29,13 +29,18 @@ module UI
|
|
29
29
|
|
30
30
|
def hidden=(value)
|
31
31
|
if hidden
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
data/flow/ui/cocoa/view.rb
CHANGED
@@ -60,13 +60,18 @@ module UI
|
|
60
60
|
|
61
61
|
def hidden=(hidden)
|
62
62
|
if hidden
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|