Make the event palette an overlay.

This commit is contained in:
Nathan Sobo
2012-10-01 14:20:00 -10:00
parent fff0e623d3
commit 3d79100877
3 changed files with 7 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ describe "EventPalette", ->
rootView.remove()
describe "when shown", ->
ffit "shows a list of all valid events for the previously focused element", ->
it "shows a list of all valid events for the previously focused element, then focuses the mini-editor", ->
rootView.attachToDom().focus()
rootView.trigger 'event-palette:show'
for [event, description] in rootView.getActiveEditor().events()

View File

@@ -18,9 +18,8 @@ class EventPalette extends View
attach: ->
@previouslyFocusedElement = $(':focus')
console.log @pre
@populateEventList()
@appendTo(@rootView.vertical)
@appendTo(@rootView)
@miniEditor.focus()
populateEventList: ->

View File

@@ -1,3 +1,8 @@
.event-palette {
position: absolute;
bottom: 0;
}
.event-palette .event-list {
max-height: 300px;
color: white;