cyberarm_engine 0.7.0 → 0.7.1
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0482c4bc8711db99340a9ece925032fb23322301aead26491ee98622a6b7c6bb'
|
4
|
+
data.tar.gz: eeeb993e54b51a443ad45bd9b341e6f4b3a1c2225cc80434503508a4869b838a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c3d1154cc5a15eaee40944f1693115d33fdbfbdc55a71333adba065ec2996f1f0d0a8c9c85a07868f2f3e00ec0c1c5f65667259bacf98060d07d39f46f7bf9e
|
7
|
+
data.tar.gz: 1c25facb14642fea3e371b810c34dc8eaa28c5df1794c8c4c75e5e0d61965d86564289b4fa8e6b2991f74c6bb4dac2b4389c2ea37c1634dc2b4137e469a55563
|
@@ -64,7 +64,7 @@ module CyberarmEngine
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def recalculate
|
67
|
-
@current_position = Vector.new(@margin_left, @margin_top)
|
67
|
+
@current_position = Vector.new(@margin_left + @padding_left, @margin_top + @padding_top)
|
68
68
|
unless @visible
|
69
69
|
@width = 0
|
70
70
|
@height= 0
|
@@ -73,8 +73,8 @@ module CyberarmEngine
|
|
73
73
|
|
74
74
|
layout
|
75
75
|
|
76
|
-
@width = @max_width ? @max_width : (@children.map {|c| c.x + c.
|
77
|
-
@height = @max_height ? @max_height : (@children.map {|c| c.y + c.
|
76
|
+
@width = @max_width ? @max_width : (@children.map {|c| c.x + c.outer_width }.max || 0).round
|
77
|
+
@height = @max_height ? @max_height : (@children.map {|c| c.y + c.outer_height}.max || 0).round
|
78
78
|
|
79
79
|
# Move child to parent after positioning
|
80
80
|
@children.each do |child|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyberarm_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyberarm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gosu
|