material_raingular 0.0.2.7 → 0.0.2.7.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e3d851c4221a249aa53f03ae38fdd28f763eb5
|
4
|
+
data.tar.gz: 0205913549c975f6e6fc32f4ad6077e3a84b767e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 =
|
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)
|
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.
|
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.
|