Closed hoseyjoe closed 4 years ago
I was trying to use the nme drawing (Sprite.graphics) and it appeared to work with some issue.
component.graphics.drawRect(0,0,200,200) should draw a 200x200 pixel square
a little bit is shown
I added width and height and nothing showed. However just adding height allowed the box to be shown.
Where mainConent is a ScrollView var s:Component = new Component(); // s.width = 200; // s.height = 200; s.graphics.beginFill(0); s.graphics.drawRect(0, 0, 200, 200); s.graphics.endFill(); s.includeInLayout = true; mainContent.addComponent(s);
windows
cant repeat
I was trying to use the nme drawing (Sprite.graphics) and it appeared to work with some issue.
Expected Behavior
component.graphics.drawRect(0,0,200,200) should draw a 200x200 pixel square
Current Behavior
a little bit is shown
Possible Solution
I added width and height and nothing showed. However just adding height allowed the box to be shown.
Steps to Reproduce (for bugs)
Where mainConent is a ScrollView var s:Component = new Component(); // s.width = 200; // s.height = 200; s.graphics.beginFill(0); s.graphics.drawRect(0, 0, 200, 200); s.graphics.endFill(); s.includeInLayout = true; mainContent.addComponent(s);
Your Environment
windows