combo_auto_box 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
@@ -234,9 +234,12 @@ var ComboAutoBox = {
|
|
234
234
|
} else if (options.type == 'multiple') {
|
235
235
|
inputTop = 0;
|
236
236
|
try {
|
237
|
-
|
238
|
-
|
239
|
-
|
237
|
+
spanHeight = $('#' + container + ' > div.container-combo-auto-box > span.multiple').height();
|
238
|
+
if (spanHeight == 0) {
|
239
|
+
spanHeight = 20;
|
240
|
+
}
|
241
|
+
inputTop = (getTextFieldHeight(textField) / 2) - ((getTextFieldBorder(textField, 'height') + spanHeight) / 2) - 2;
|
242
|
+
$('#' + container + ' > div.container-combo-auto-box > span.multiple').css('margin-top', (inputTop).toString() + 'px');
|
240
243
|
} catch (error) {
|
241
244
|
}
|
242
245
|
} else {
|
@@ -273,20 +276,26 @@ var ComboAutoBox = {
|
|
273
276
|
|
274
277
|
var getTextFieldHeight = function (textField) {
|
275
278
|
var heightTotal = 0;
|
279
|
+
|
280
|
+
try {
|
281
|
+
if (textField.height() != null) {
|
282
|
+
heightTotal = heightTotal + textField.height();
|
283
|
+
}
|
284
|
+
} catch (error) {}
|
276
285
|
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
heightTotal = heightTotal + parseInt(padding_top);
|
284
|
-
}
|
286
|
+
try {
|
287
|
+
if (textField.css('padding-top') != null) {
|
288
|
+
padding_top = textField.css('padding-top').toString().replace(/[a-zA-Z]+/g, '');
|
289
|
+
heightTotal = heightTotal + parseInt(padding_top);
|
290
|
+
}
|
291
|
+
} catch (error) {}
|
285
292
|
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
293
|
+
try {
|
294
|
+
if (textField.css('padding-bottom') != null) {
|
295
|
+
padding_bottom = textField.css('padding-bottom').toString().replace(/[a-zA-Z]+/g, '');
|
296
|
+
heightTotal = heightTotal + parseInt(padding_bottom);
|
297
|
+
}
|
298
|
+
} catch (error) {}
|
290
299
|
|
291
300
|
return heightTotal;
|
292
301
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: combo_auto_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|