recordselect 3.3.3 → 3.3.4
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
|
-
SHA1:
|
3
|
-
data.tar.gz: e8159d9a713401f593434b51de0dedf9a4caa019
|
4
|
-
metadata.gz: 96a5a44a3671f03c89d0c87aee1e93b53c96c3b6
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: a7f3f69b701cf9ef2b7b9283e479157fd6485375db3e31d0c34102a737164550cc02fe7b94e07a272963398aa85c9a51d75036a868a8cef3adc0a572e6324126
|
4
|
+
data.tar.gz: 35f48341f8f1e2ae26e79dbc9ce75fa74376e3be711aa5f43931271d50d3253cbd3e227acfa73e1b2d4d5377388bbc449c8acf97c6f75dddfa0ff3b847ef65c4
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 60bacc8a8a7385c2721c00e8faa76a9673751cca
|
7
|
+
data.tar.gz: b2c610449ab757ded6a074abf7bb0840a986f314
|
@@ -206,15 +206,19 @@ RecordSelect.Abstract = Class.extend({
|
|
206
206
|
* positions and reveals the recordselect
|
207
207
|
*/
|
208
208
|
show: function() {
|
209
|
-
var offset = this.obj.offset()
|
209
|
+
var offset = this.obj.offset()
|
210
|
+
if (this.fixed) offset.top -= jQuery(window).scrollTop(); // get fixed position
|
211
|
+
var top = this.obj.outerHeight() + offset.top;
|
212
|
+
|
210
213
|
this.container.show();
|
211
214
|
this.container.css('left', offset.left);
|
212
|
-
|
215
|
+
this.container.css('top', '');
|
216
|
+
this.container.css('bottom', '');
|
217
|
+
if (this.fixed && top + this.container.outerHeight() > jQuery(window).height()) {
|
213
218
|
this.container.css('bottom', jQuery(window).height() - offset.top);
|
214
|
-
this.container.css('top', '');
|
215
219
|
} else {
|
216
220
|
this.container.css('top', top);
|
217
|
-
this.container.css('
|
221
|
+
if (!this.container.visible()) this.container.css('top', top - this.obj.outerHeight() - this.container.outerHeight());
|
218
222
|
}
|
219
223
|
|
220
224
|
if (this._use_iframe_mask()) {
|
@@ -267,8 +271,15 @@ RecordSelect.Abstract = Class.extend({
|
|
267
271
|
* creates and initializes (and returns) the recordselect container
|
268
272
|
*/
|
269
273
|
create_container: function() {
|
270
|
-
var e = jQuery("<div />", {'class': "record-select-container record-select-handler"});
|
271
|
-
e.css('display', 'none')
|
274
|
+
var e = jQuery("<div />", {'class': "record-select-container record-select-handler"}), rs = this;
|
275
|
+
e.css('display', 'none');
|
276
|
+
jQuery(this.obj).add(this.obj.parents()).each(function() {
|
277
|
+
if (jQuery(this).css('position') == 'fixed') {
|
278
|
+
rs.fixed = jQuery(this);
|
279
|
+
e.css('position', 'fixed');
|
280
|
+
return false;
|
281
|
+
}
|
282
|
+
});
|
272
283
|
jQuery(document.body).append(e);
|
273
284
|
e.get(0).onselect = jQuery.proxy(this, "onselect")
|
274
285
|
return e;
|
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.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2014-05-
|
14
|
+
date: 2014-05-20 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|