mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Moved font-size back to 'px' and fixed specs
This commit is contained in:
@@ -804,7 +804,7 @@ describe "Editor", ->
|
||||
describe "when the font size changes on the view", ->
|
||||
it "updates the font sizes of editors and recalculates dimensions critical to cursor positioning", ->
|
||||
rootView.attachToDom()
|
||||
expect(editor.css('font-size')).not.toBe '30px'
|
||||
rootView.setFontSize(10)
|
||||
lineHeightBefore = editor.lineHeight
|
||||
charWidthBefore = editor.charWidth
|
||||
editor.setCursorScreenPosition [5, 5]
|
||||
|
||||
@@ -630,7 +630,7 @@ class Editor extends View
|
||||
|
||||
setFontSize: (fontSize) ->
|
||||
if fontSize
|
||||
@css('font-size', fontSize + 'pt')
|
||||
@css('font-size', fontSize + 'px')
|
||||
@calculateDimensions()
|
||||
@compositeCursor.updateAppearance()
|
||||
@updateVisibleLines()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
}
|
||||
|
||||
body {
|
||||
font: 16pt Inconsolata, Monaco, Courier !important;
|
||||
font: 16px Inconsolata, Monaco, Courier !important;
|
||||
}
|
||||
|
||||
#root-view {
|
||||
|
||||
Reference in New Issue
Block a user