Rename TextEditorPresenter::height to ::explicitHeight

This clarifies that the height is being assigned externally rather than
derived from the content.
This commit is contained in:
Nathan Sobo
2015-02-04 15:10:58 -07:00
parent b94576dc09
commit 77599c799c
4 changed files with 124 additions and 123 deletions

View File

@@ -652,10 +652,10 @@ TextEditorComponent = React.createClass
@presenter.setAutoHeight(false)
height = hostElement.offsetHeight
if height > 0
@presenter.setHeight(height)
@presenter.setExplicitHeight(height)
else
@presenter.setAutoHeight(true)
@presenter.setHeight(null)
@presenter.setExplicitHeight(null)
clientWidth = scrollViewNode.clientWidth
paddingLeft = parseInt(getComputedStyle(scrollViewNode).paddingLeft)