recordselect 3.4.4 → 3.4.5

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: d4c5cedccd0ac61f0ed77160cc1d311fa7772720
4
- data.tar.gz: 285d9fb1b4d03d03d6e446023089cca2eb8f33bd
3
+ metadata.gz: 0e5fee94a80d1d26946e25a330b2c1ee688bdbed
4
+ data.tar.gz: 4b1463bbd61f086483b1a61544d1876b525fa658
5
5
  SHA512:
6
- metadata.gz: c4b8360f5e8634eb83c31205d3771ad427d3cbfa9647d5dca6e1175b1b77e8db9b718c56a45e69f4230bdd9563294402135cb42c52bba20ba07f5dba1b63c51f
7
- data.tar.gz: f68faab6f46f587e9e33e58981346dfac3d147e06f00604884159cb75bd44e4dc4dc60ec7914c860043d3291b50c681fdf86e1eee13c56ba737a16019f9e1425
6
+ metadata.gz: ce8ab729c353618b757ef88d4d3cb6931a1a788e63846fc6f5c1a887d7cdd842ca86042f94326b663fb394435a21449a2652a6e034a149e098aa9baa55a2f094
7
+ data.tar.gz: 2df62b9420154d4dd431b30c94fb2da6abb4788fe453444bc1b69a5b4334b95c405355e23e4a29b90665dc65392d53b9642e00a91e9de8fda17902fb9d711e98
@@ -221,7 +221,7 @@ RecordSelect.Abstract = Class.extend({
221
221
  this.container.css('left', offset.left);
222
222
  this.container.css('top', '');
223
223
  this.container.css('bottom', '');
224
- if (this.fixed && top + height > window_height) {
224
+ if ((this.fixed || this.body_static) && top + height > window_height) {
225
225
  this.container.css('bottom', window_height - offset.top);
226
226
  } else {
227
227
  var below_space = window_height-(top-scroll), above_space = offset.top - scroll, position;
@@ -293,6 +293,7 @@ RecordSelect.Abstract = Class.extend({
293
293
  }
294
294
  });
295
295
  jQuery(document.body).append(e);
296
+ if (!rs.fixed && e.offsetParent().css('position') == 'static') rs.body_static = true;
296
297
  e.get(0).onselect = jQuery.proxy(this, "onselect")
297
298
  return e;
298
299
  },
@@ -2,7 +2,7 @@ module RecordSelect
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 4
5
- PATCH = 4
5
+ PATCH = 5
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.4
4
+ version: 3.4.5
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-01-27 00:00:00.000000000 Z
13
+ date: 2015-03-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: shoulda