hooch 0.16.20 → 0.16.21

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
  SHA256:
3
- metadata.gz: bd94944fb2da23bdc1ec140ede190252f59a9f3c2aae00420a21abc8bb62d9fd
4
- data.tar.gz: 51d82e77c5585cd61b7c16b33fa42042f00633c432ce042bf188f7a490d52017
3
+ metadata.gz: ab8a299c5d5cea0b73b0f37896a5c5fe08f6e070a3abd3f3347047f0aed4328b
4
+ data.tar.gz: ceadd2f7df0982c592712039098c060e4c96553cb7eed9e1b3c3aa809b4f0f99
5
5
  SHA512:
6
- metadata.gz: bffe63fa431e3b4ad7481f8604d3e7b649cbda473df6da70dd514708089ac8251b6d1d747f32f32a5400a655e998562633c1eaa3b89a29c500b7887b7a0eccb8
7
- data.tar.gz: fc732d85a0915cb69bf484dd1e103d43a32e0dca0dc196ec30296ea7151b9b650e8806df507f6f3b85b3ceb1eda9ab7f54fc07a92cc47a4ea9adc65b52d05105
6
+ metadata.gz: 525913d0d3440de05b43491762b5262a7992101bfea6fee6308ef91fda31d2a109de509601e83bbbf60bad2db6bb390b9c3514ea63e945938772c097581a2226
7
+ data.tar.gz: e4816b063f41969dcb0b456f1b3b332d6be0cc51c2483662204b22ceb5cf9718420644694c218a88f4bf2264fa059f67161d60e077af5640c9c687ab0724c436
@@ -240,15 +240,19 @@ var initHooch = function(){
240
240
  load: function($modal_content,dismissable){
241
241
  this.$modal_content = $modal_content
242
242
  this.dismissable = dismissable
243
- this.$modal_wrapper.html(this.$modal_content)
244
- this.$modal_wrapper.append(this.$dismisser)
245
- this.$modal_content.show()
243
+ this.arrangeContent()
246
244
  this.attachDismisser()
247
245
  this.disableScroll()
248
246
  this.$modal_content.trigger('modalInitialized')
249
247
  this.showModal()
250
248
  this.$modal_content.trigger('modalVisible')
251
249
  },
250
+ arrangeContent: function(){
251
+ this.$modal_wrapper.html(this.$modal_content)
252
+ this.$modal_wrapper.append(this.$dismisser)
253
+ this.$modal_wrapper.css({'max-height': window.innerHeight - 100})
254
+ this.$modal_content.show()
255
+ },
252
256
  getMask: function(){
253
257
  this.$modal_mask = $('#hooch-mask')
254
258
  },
data/lib/hooch/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.16.20"
2
+ VERSION = "0.16.21"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.20
4
+ version: 0.16.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-02 00:00:00.000000000 Z
11
+ date: 2019-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails