material_raingular 0.0.2.7 → 0.0.2.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
  SHA1:
3
- metadata.gz: 7fe723e6cade64c9c00a6a47c2e5c963e41c03f4
4
- data.tar.gz: f6db7cccd8a694f63702d89f03d649db5d265267
3
+ metadata.gz: 99e3d851c4221a249aa53f03ae38fdd28f763eb5
4
+ data.tar.gz: 0205913549c975f6e6fc32f4ad6077e3a84b767e
5
5
  SHA512:
6
- metadata.gz: 99cf4b71d44b3d7795704cd709bb62ab5db910d4a3095ebbf11f62f076ab9d4cd12587f7a786e232886c5df503ac6f1942dab2cf0921d59b97c0c91824de1704
7
- data.tar.gz: 441d47f012b1a802ba9fbf320b3a2baf91ab6cd8e1c89638969b97efb169e995ab8bc90bbadcf60b808b0f7937c9ec587af5f0ea34577e2908118fbc85903cf1
6
+ metadata.gz: 7335a21dfe39742874e348a577e7abb9eaced116d6c23466e8ba16d9a2b50033ed433eb497bc10a3729d0ef7e9b15416b799b52c73e447194f0d26d5cd766005
7
+ data.tar.gz: 6c6c88098a7d7f276d518356f13216487950edbb79ea9b236b8f0a0712c11da57b33e0adcdf5f2f67324cbe06f7eeb4093123c5f694b0c578cb441b3e94f384a
@@ -2,14 +2,14 @@ angular.module('TextArea', [])
2
2
  .directive 'textarea', ($timeout) ->
3
3
  restrict: 'E'
4
4
  link: (scope, element, attributes) ->
5
- scope.initialHeight = scope.initialHeight || element[0].style.height
5
+ initialHeight = initialHeight || element[0].style.height
6
6
  element.css('resize','none').css('overflow','hidden').css('border','0px')
7
7
  initial = element.parent().css('height')
8
8
  resize = ->
9
- element.parent().css('height',element.parent()[0].offsetHeight)
10
- element[0].style.height = scope.initialHeight
9
+ element.parent().css('height',element.parent()[0].offsetHeight) if element.parent()[0]
10
+ element[0].style.height = initialHeight
11
11
  element[0].style.height = "" + Math.max(20,element[0].scrollHeight) + "px"
12
12
  $timeout ->
13
13
  element.parent().css('height',initial)
14
- element.on("blur keyup change", resize)
14
+ element.on("blur keyup change focus input", resize)
15
15
  $timeout(resize, 0)
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.2.7"
2
+ VERSION = "0.0.2.7.1"
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.0.2.7
4
+ version: 0.0.2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements: []
144
144
  rubyforge_project:
145
- rubygems_version: 2.4.3
145
+ rubygems_version: 2.2.1
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Angular v1.4 for rails. Angular Material v0.9.8.