From 45b87ed38ec0ef4299c7bd9476923d2cd531dc26 Mon Sep 17 00:00:00 2001 From: Mikhail Koltsov Date: Fri, 21 Mar 2014 13:45:56 +0400 Subject: [PATCH] finally got it right --- app/views/editor/level/thangs_tab_view.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/editor/level/thangs_tab_view.coffee b/app/views/editor/level/thangs_tab_view.coffee index 4baf833d6..cd4614f3b 100644 --- a/app/views/editor/level/thangs_tab_view.coffee +++ b/app/views/editor/level/thangs_tab_view.coffee @@ -230,7 +230,7 @@ module.exports = class ThangsTabView extends View if treemaThang if not treemaThang.isSelected() treemaThang.select() - @thangsTreema.$el.scrollTop(treemaThang.$el.scrollTop()) + @thangsTreema.$el.scrollTop(@thangsTreema.$el.find('.treema-children .treema-selected')[0].offsetTop) else if @addThangSprite # We clicked on the background when we had an add Thang selected, so add it @addThang @addThangType, @addThangSprite.thang.pos