mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix the height/width of the editor in spec
Now that everything is absolutely position, the editor no longer assumes a "natural" height and width. This can be addressed later if we want to allow editors to expand based on their content.
This commit is contained in:
@@ -41,6 +41,10 @@ describe "EditorComponent", ->
|
||||
verticalScrollbarNode = node.querySelector('.vertical-scrollbar')
|
||||
horizontalScrollbarNode = node.querySelector('.horizontal-scrollbar')
|
||||
|
||||
node.style.height = editor.getLineCount() * lineHeightInPixels + 'px'
|
||||
node.style.width = '1000px'
|
||||
component.measureHeightAndWidth()
|
||||
|
||||
afterEach ->
|
||||
contentNode.style.width = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user