Small error handling improvment.

This commit is contained in:
Martin Edenhofer 2013-04-24 11:56:16 +02:00
parent 3ba55da83e
commit dbeeda47ab

View file

@ -69,5 +69,6 @@ class App.TagWidget extends App.Controller
container = document.getElementById( @attribute_id + '_tagsinput' )
if reorder
$('#' + @attribute_id + '_tagsinput').height( 20 )
return if !container
height = container.scrollHeight
$('#' + @attribute_id + '_tagsinput').height( height - 10 )