recordselect 3.4.9 → 3.4.10

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: bdc6d3a809b14a7a210f726104af134745758365
4
- data.tar.gz: c6a6c0d7eb34946e0833bca299144cc1ca7b0401
3
+ metadata.gz: df5882fed3fec76046c9084bb4a5c238d5a753d7
4
+ data.tar.gz: 56c0c099130a14ee7092fc2fb9ac5b3871f85e23
5
5
  SHA512:
6
- metadata.gz: b827899803ea63753c798f32c7d0cc0b6ef404cb195ed40e389e8a81adf08288df955875820276e8970e3546ac88160692f10b86a041558a8a63389433dd1e9f
7
- data.tar.gz: 8a203cce44027975b163aa03af8e53bfeb4ca6c4e2514fa606b20ea971ac8dd3a90c84bca8ac800f443cd249b7cac664db1b89575353fd8125775d1b59e95a7c
6
+ metadata.gz: 21aac4ee95be593d190218d8f390f8925502a685a2179e690fc42ea662a7f15901297cf981d40d59d9a13ba2379622a4a562bfced4f526599a67222962d75486
7
+ data.tar.gz: dbb439ccb4622c000875f0ac5a00ac9233c19e4bd022badfa631f7bd396022643b277c83462e9e5ff473dc8305747c67819bc22e54dfa3dea2be8d13a65a466f
@@ -251,7 +251,11 @@ RecordSelect.Abstract = Class.extend({
251
251
  else position = above_space < below_space ? 'top' : 'bottom';
252
252
  } else position = 'top';
253
253
  if (position == 'top') this.container.css('top', top);
254
- else this.container.css('bottom', document_height - offset.top);
254
+ else {
255
+ var bottom = document_height - offset.top, body_height = $(document.body).height();
256
+ if (body_height < document_height) bottom -= document_height - body_height;
257
+ this.container.css('bottom', bottom);
258
+ }
255
259
  }
256
260
 
257
261
  if (this._use_iframe_mask()) {
@@ -2,7 +2,7 @@ module RecordSelect
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 4
5
- PATCH = 9
5
+ PATCH = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recordselect
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.9
4
+ version: 3.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-26 00:00:00.000000000 Z
13
+ date: 2016-03-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: shoulda
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.4.4
116
+ rubygems_version: 2.5.2
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: RecordSelect widget as a replacement for massive drop down lists