 		return if @__constructor
 		@_styledText.render()
 		@_updateHTMLScale()
-		@size = @_styledText.measure(@size)
+		calculatedSize = @_styledText.measure
+			width: @size.width
+			height: @size.height
+			multiplier: @context.pixelMultiplier
+		@size = calculatedSize

	measure: (currentSize) ->
		constraints = {}
		if not @autoWidth
			constraints.width = currentSize.width
		if not @autoHeight
			constraints.height = currentSize.height

		m = getMeasureElement(constraints)
		measuredWidth = 0
		measuredHeight = 0

		for block in @blocks
			blockDiv = block.createElement()
			block.element = blockDiv
			# block.setTextOverflow(@textOverflow, @autoHeight)
			@element.appendChild blockDiv

	getText: ->
		@blocks.map((b) -> b.text).join("\n")

	setText: (text) ->
		values = text.split("\n")
		@blocks = @blocks.slice(0, values.length)
		for value, index in values
			if @blocks[index]?
				block = @blocks[index]
			else
				block = new StyledTextBlock
					text: value
					inlineStyles: [_.clone(@blocks[index-1].inlineStyles[0])]
				@blocks.push(block)
			block.setText(value)

	setTextOverflow: (textOverflow) ->
		@textOverflow = textOverflow

	setStyle: (style, value) ->
		@blocks.map (block) -> block.setStyle(style, value)
