Fix a reported issue with search field scale.
Closes gh-14
This commit is contained in:
parent
d3b14656ea
commit
cb7bf985a0
2 changed files with 4 additions and 2 deletions
|
@ -653,7 +653,8 @@
|
||||||
}
|
}
|
||||||
div = $('<div />', {
|
div = $('<div />', {
|
||||||
'style': style_block
|
'style': style_block
|
||||||
}).text(this.search_field.val());
|
});
|
||||||
|
div.text(this.search_field.val());
|
||||||
$('body').append(div);
|
$('body').append(div);
|
||||||
w = div.width() + 25;
|
w = div.width() + 25;
|
||||||
div.remove();
|
div.remove();
|
||||||
|
|
|
@ -560,7 +560,8 @@ class Chosen
|
||||||
for style in styles
|
for style in styles
|
||||||
style_block += style + ":" + @search_field.css(style) + ";"
|
style_block += style + ":" + @search_field.css(style) + ";"
|
||||||
|
|
||||||
div = $('<div />', { 'style' : style_block }).text @search_field.val()
|
div = $('<div />', { 'style' : style_block })
|
||||||
|
div.text @search_field.val()
|
||||||
$('body').append div
|
$('body').append div
|
||||||
|
|
||||||
w = div.width() + 25
|
w = div.width() + 25
|
||||||
|
|
Loading…
Reference in a new issue