Bounds invalidation in TextField should affect parent

Bug #941443 reported by Niel Drummond
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jeash
Fix Committed
Undecided
Niel Drummond

Bug Description

Hello,

I have a layout manager class that I use to dynamically position multiple elements and I need to get the correct width vals from each member. The problem I have is as follows: I have a Sprite into which I have added a TextField. If I trace out the width of the TextField it comes out as (e.g.) 130 BUT if I trace out the width of the parent Sprite it comes out as 0. Is this a fixable behaviour in Jeash? Are there similar behaviours I am going to encounter as I refactor my AS3 project to the html5 target?

Much thanks!

Sam

Revision history for this message
Niel Drummond (niel-drummond) wrote :

Test Case:

                var parent = new Sprite();

                var text = new TextField();
                text.text = "bounds invalidation test.";

                parent.addChild(text);

                assertEquals(text.width, parent.width);
                assertEquals(0., text.x);

Changed in jeash:
status: New → In Progress
assignee: nobody → Niel Drummond (niel-cyanescent)
Changed in jeash:
status: In Progress → Fix Committed
milestone: none → 0.8.8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.