teacup 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,8 +43,8 @@ module Teacup
43
43
 
44
44
  def constrain_size(width, height)
45
45
  [
46
- Teacup::Constraint.new(:self, :right).equals(:self, :left).plus(width),
47
- Teacup::Constraint.new(:self, :bottom).equals(:self, :top).plus(height),
46
+ Teacup::Constraint.new(:self, :width).equals(width),
47
+ Teacup::Constraint.new(:self, :height).equals(height),
48
48
  ]
49
49
  end
50
50
 
@@ -56,7 +56,7 @@ module Teacup
56
56
 
57
57
  def constrain_above(relative_to, margin=0)
58
58
  margin = 8 if margin == :auto
59
- Teacup::Constraint.new(:self, :bottom).equals(relative_to, :top).plus(margin)
59
+ Teacup::Constraint.new(:self, :bottom).equals(relative_to, :top).minus(margin)
60
60
  end
61
61
 
62
62
  def constrain_to_right(relative_to, margin=0)
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teacup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-18 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake