Trying to position at the bottom. We need a better flexbox impl

This commit is contained in:
Nathan Sobo
2012-04-17 13:41:31 -06:00
parent 012237678e
commit 77ba75a4c6
5 changed files with 32 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ CommandPanel = require 'command-panel'
Pane = require 'pane'
PaneColumn = require 'pane-column'
PaneRow = require 'pane-row'
StatusBar = require 'status-bar'
module.exports =
class RootView extends View
@@ -46,6 +47,8 @@ class RootView extends View
@deserializePanes(panesViewState) if panesViewState
StatusBar.initialize(this)
serialize: ->
projectPath: @project?.path
panesViewState: @serializePanes()

View File

@@ -3,8 +3,10 @@
module.exports =
class StatusBar extends View
@initialize: (rootView) ->
requireStylesheet 'status-bar.css'
for editor in rootView.editors()
@appendToEditorPane(rootView, editor)
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appendToEditorPane(rootView, editor)
@@ -27,3 +29,8 @@ class StatusBar extends View
position = @editor.getCursorBufferPosition()
@cursorPosition.text("#{position.row},#{position.column}")
@height(@editor.lineHeight)
console.log "HELLO"
console.log height: "-webkit-calc(100% - #{@editor.lineHeight}px)"
@editor.css(height: "-webkit-calc(100% - #{@editor.lineHeight}px)")