 		set: (value) -> @direction = value
 
 	@define "text",
-		get: -> @_styledText.blocks.map((b) -> b.text).join("\n")
+		get: -> @_styledText.getText()
 		set: (value) ->
 			@_styledText.setText(value)
 			@renderText()


	@define "truncate",
		get: -> @textOverflow is "ellipsis"
		set: (truncate) -> @textOverflow = if truncate then "ellipsis" else null

	@define "whiteSpace", textProperty(@, "whiteSpace", null, _.isString)
	@define "direction", textProperty(@, "direction", null, _.isString)

	measure: (currentSize) ->
		constraints = {}
		if not @autoWidth
			constraints.width = currentSize.width * currentSize.multiplier
		if not @autoHeight
			constraints.height = currentSize.height * currentSize.multiplier
		m = getMeasureElement(constraints)
		measuredWidth = 0
		measuredHeight = 0
