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 +4 -4
- data/app/assets/javascripts/jquery/record_select.js +2 -1
- data/lib/record_select/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e5fee94a80d1d26946e25a330b2c1ee688bdbed
|
|
4
|
+
data.tar.gz: 4b1463bbd61f086483b1a61544d1876b525fa658
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
},
|
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
|
+
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-
|
|
13
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: shoulda
|