I can know the real height and width of a canvas components. I need to
know real height and wind not only visible area, this need to include
scrolled area.
Thks.
Grio.
Hi,
When you explicitly set the width OR height of a component, the measure()
method will not be called since you have already locked in the dimensions
of the component canvas.
Use this method instead
v1.getExplicitOrMeasuredHeight()
You will see it traces your set height.
Now, take out the
I believe the measuredWidth and measuredHeight properties can help you here.
On 10/10/2008 11:18, Giro [EMAIL PROTECTED] wrote:
I can know the real height and width of a canvas components. I need to
know real height and wind not only visible area, this need to include
scrolled area.
I¹ve been having a similar issue, and I¹m not one hundred percent sure how
to correct it.
However you should try setting the creationPolicy to ³all².
Other may also be able to help if you provide a snippet of your code as an
example.
On 10/10/2008 11:32, Giro [EMAIL PROTECTED] wrote:
But measuredWidth and measuredHeight return 0 for me.
Giro.
2008/10/10 David Gironella [EMAIL PROTECTED]:
But measuredWidth and measuredHeight return 0 for me.
Giro.
2008/10/10 Emile Swain [EMAIL PROTECTED]:
I believe the measuredWidth and measuredHeight properties can help you here.
Easy example:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:Script
![CDATA[
private function onClick(evt:MouseEvent):void
{
trace(Height: +v1.height);
6 matches
Mail list logo