material_raingular 0.0.6 → 0.0.7

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: dd3b0de67560394702ab17c967af7ed1fc575b86
4
- data.tar.gz: 5fb5ac84e3ada975ca03f737dbdfe4371702bc80
3
+ metadata.gz: ddd28998b4e2f2bd41a91280caced0da45eae4b4
4
+ data.tar.gz: dad9ec2912ce81cdef5a64996edf20be40b7076c
5
5
  SHA512:
6
- metadata.gz: e5c74de317460b634fa55e7931c20f7d80bc656b50b3f3ccf90732a521479142073002ad529e591000ea89624d2b6371249588c8aab9fe54a3a3ef426ab9cd68
7
- data.tar.gz: 6baa17e1247fd2977ff280707a98ffb1fdc63c454595c35cd5fde004a3a125f8931755b46bc7b8e33af617320c7c1785007baaa5f25b0c11a93fe82b954c2880
6
+ metadata.gz: 0772699cd84a41a42cab1d0fd59086eed6a24dec88d8657bfeb77caa1a57d1761988faa08916fa2f29d0bddacf641b2f2199091d98fab3865fced37f755564f2
7
+ data.tar.gz: 70fb0fe98301c58b7c816abc6c300c7cc750ed0bc95eb0007f0bf5c06bf3f066820a8c6174479a329ba71efc081472b33ba7f3ebde2d7a38e73aca338c38a53e
@@ -87,7 +87,13 @@ class StandardTemplate
87
87
  searchCss = window.getComputedStyle(@search[0])
88
88
  @typeAhead.css('white-space', 'nowrap')
89
89
  @typeAhead.css('padding-left', parseFloat(searchCss["padding-left"]) + parseFloat(searchCss["margin-left"]) + parseFloat(searchCss["border-left-width"]) + 'px')
90
- @typeAhead.css('padding-top', parseFloat(searchCss["padding-top"]) + parseFloat(searchCss["margin-top"]) + parseFloat(searchCss["border-top-width"]) + 'px')
90
+ padding = parseFloat(searchCss["padding-top"]) + parseFloat(searchCss["margin-top"]) + parseFloat(searchCss["border-top-width"])
91
+ parent = @element[0]
92
+ until parent.tagName == 'TD'
93
+ break unless parent.parentNode
94
+ parent = parent.parentNode
95
+ padding += 1 unless parent.tagName == 'TD'
96
+ @typeAhead.css('padding-top', padding + 'px')
91
97
 
92
98
  bind: ->
93
99
  @search.bind 'input', (event)=>
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-03 00:00:00.000000000 Z
11
+ date: 2016-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler