columnSelect: disable fixed height

This commit is contained in:
Felix Niklas 2016-02-09 16:05:42 +01:00
parent 0f542c6980
commit 0f6384fd56

View file

@ -29,10 +29,12 @@ class App.ColumnSelect extends Spine.Controller
render: ->
@html App.view('generic/column_select')( @options.attribute )
# keep height fixed
setTimeout =>
@el.css 'height', @el.height()
, 0
# keep inital height
# disabled for now since controls in modals get rendered hidden
# and thus have no height
# setTimeout =>
# @el.css 'height', @el.height()
# , 0
onSelect: (event) ->
@select $(event.currentTarget).attr('data-value')