mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 15:50:11 -04:00
Fixed cast button moving around due to anticipated errors early.
This commit is contained in:
parent
c21952646a
commit
43c1240a03
2 changed files with 2 additions and 1 deletions
app
|
@ -51,7 +51,7 @@
|
|||
line-height: 20px
|
||||
overflow: visible
|
||||
|
||||
&.user-code-problem
|
||||
&.user-code-problem.spell-cast
|
||||
@include editor-height(40px)
|
||||
|
||||
&.disabled
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue