mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
finally got it right
This commit is contained in:
parent
0ece400a18
commit
45b87ed38e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue