From dbeeda47abe8b6f68a41bbda52e1bc5eace447a7 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 24 Apr 2013 11:56:16 +0200 Subject: [PATCH] Small error handling improvment. --- app/assets/javascripts/app/controllers/tag_widget.js.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/app/controllers/tag_widget.js.coffee b/app/assets/javascripts/app/controllers/tag_widget.js.coffee index fb1c0ba7f..382156229 100644 --- a/app/assets/javascripts/app/controllers/tag_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/tag_widget.js.coffee @@ -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 )