Skip to main content
Jun 3, 2009 12:45 PM UTC
Answered

Problem of contentHeight with Latest Build 442

Hi,

I am having a problem to access contentHeight from controller.

The syntax is below.

private var _controller:ContainerController;

var newHeight:Number = _controller.contentHeight;

It throws an error now, I was previously using IContainerController with Build 370. It was working fine but now as I switched to 442 with ContainerController it shows error.

Please suggest how I can access this.

Regards,

Rajesh

This topic is closed to new replies. Start a new post to keep the conversation going.
mxcCorrect answer
Inspiring
Jun 3, 2009 5:59 PM UTC

Hi

Yes strange to remove this handy reference to height.

The way to achieve this now is to use

textFlow.flowComposer.getControllerAt(0).getContentBounds().height

or if you have a variable for your Controller then just use that to getContentBounds().height

regards

Micheal

5 replies

Participant
Oct 29, 2020 7:50 AM UTC

rajeshningwal440@gmail.com

Translate
mxcCorrect answer
Inspiring
Jun 3, 2009 5:59 PM UTC

Hi

Yes strange to remove this handy reference to height.

The way to achieve this now is to use

textFlow.flowComposer.getControllerAt(0).getContentBounds().height

or if you have a variable for your Controller then just use that to getContentBounds().height

regards

Micheal

Translate
Jun 6, 2009 11:40 AM UTC

Hi Michael,

yes I got it with that, it was really strange as you said  to remove this handy reference.

But got it that way,

Thanks for the reply.

Regards,

Rajesh

Translate
Inspiring
Jun 6, 2009 3:26 PM UTC

Hi Rajesh,

No problemo

regards

Micheal

Translate