Skip to content

Commit

Permalink
Fix width overflow when select2 is open
Browse files Browse the repository at this point in the history
auto width resolution was breaking table, this will make the select2
not change its size when opened
  • Loading branch information
kennyadsl committed Mar 1, 2018
1 parent 5417b33 commit 3803c36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Spree.EditInlineLocales = Backbone.View.extend(
_.extend(renderAttr, @model.attributes)

@$el.html(HandlebarsTemplates['available_locales'](renderAttr))
$('.available-locales').select2({placeholder: Spree.translations['please_choose_language']})
$('.available-locales').select2({placeholder: Spree.translations['please_choose_language'], width: 'element'})

return @
)
Expand Down

0 comments on commit 3803c36

Please sign in to comment.