Skip to content

Commit

Permalink
🎨 Use ::setWidth and ::setHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
as-cii committed Sep 25, 2015
1 parent a027772 commit a96af24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/text-editor-component-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3333,9 +3333,8 @@ describe "TextEditorComponent", ->
component.measureDimensions()
nextAnimationFrame()

# Why does this set an incorrect width? :confused:
wrapperNode.style.width = "108px" # this should be 55px
wrapperNode.style.height = 5.5 * 10 + "px"
wrapperNode.setWidth(55)
wrapperNode.setHeight(55)
component.measureDimensions()
nextAnimationFrame()

Expand Down

0 comments on commit a96af24

Please sign in to comment.