Fixed cast button moving around due to anticipated errors early.

This commit is contained in:
Nick Winter 2014-02-22 18:02:58 -08:00
parent c21952646a
commit 43c1240a03
2 changed files with 2 additions and 1 deletions
app
styles/play/level/tome
views/play/level/tome

View file

@ -51,7 +51,7 @@
line-height: 20px
overflow: visible
&.user-code-problem
&.user-code-problem.spell-cast
@include editor-height(40px)
&.disabled

View file

@ -336,6 +336,7 @@ module.exports = class SpellView extends View
#console.log ' and we could do the visualization', aether.visualization unless _.isEmpty aether.visualization
# Could use the user-code-problem style... or we could leave that to other places.
@ace[if @problems.length then 'setStyle' else 'unsetStyle'] 'user-code-problem'
@ace[if isCast then 'setStyle' else 'unsetStyle'] 'spell-cast'
Backbone.Mediator.publish 'tome:problems-updated', spell: @spell, problems: @problems, isCast: isCast
@ace.resize()