material_raingular 0.2.6.1 → 0.2.6.2

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: 1f9af97b40324064a6e269e9213f22cc772e77a7
4
- data.tar.gz: d07070c597a058be1b5086bc9a2267c261b8bd0e
3
+ metadata.gz: 78bccf5505dde2657ab0ef7c95cf1ec50a1a4da3
4
+ data.tar.gz: c72f95d0e54938eaba89dd4913656b40097b0152
5
5
  SHA512:
6
- metadata.gz: c0433e6a963b1e289d2dea39ec9f8cfd33acc53fa801e5a02308be58ce78e4da42dd9d524b1b2ddcb0421f1f61e400c8ff26aefdd849c720d816aa5f425583be
7
- data.tar.gz: 658cf4f277d92f59aeac80e439a2dc0462fc6ba43b615255f47b21320bfbf7dfbeac70f2f9f1f65e68e5d406e3a9249825d106e315a6ada28edc95bc46a59001
6
+ metadata.gz: 6e7d1efdddd2a3807859b08190d9db0996ef4e42562d5e896213517d633fc1e5269736e52f4f238c980171ed81d6239922039d9091a609faf87970408f36d6fe
7
+ data.tar.gz: 18f70ca51415a2b58c21dc70fe182d577302dd05b81136ab6da8b3843d6ada20ac3c7634162c7b479537d25db34a0a9ac7cdc7ae5305bb79ea02812d62ca4478
@@ -10,6 +10,14 @@ class @PanelConfig
10
10
  @openFrom ||= @event
11
11
  @target ||= @event.target
12
12
  @panelClass ||= 'md-select-menu'
13
- setPosition: (target,$mdPanel) ->
14
- @position = $mdPanel.newPanelPosition().relativeTo(target).addPanelPosition($mdPanel.xPosition.ALIGN_START, $mdPanel.yPosition.BELOW)
13
+ setPosition: (target,$mdPanel,options) ->
14
+ options ||= {}
15
+ @position = $mdPanel.newPanelPosition().relativeTo(target).addPanelPosition($mdPanel.xPosition[options.x || 'ALIGN_START'], $mdPanel.yPosition[options.y || 'BELOW'])
16
+ return @
17
+ setAnimation: (type,$mdPanel,options) ->
18
+ options ||= {}
19
+ @animation ||= $mdPanel.newPanelAnimation()
20
+ @animation.openFrom(options.openFrom || @target)
21
+ @animation.closeTo(@target)
22
+ @animation.withAnimation($mdPanel.animation[type])
15
23
  return @
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.2.6.1"
2
+ VERSION = "0.2.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6.1
4
+ version: 0.2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody