Closed neolit123 closed 11 years ago
here is the "naive" solution i mention above:
// Shape.as override public function get height():Number { if (super.x > super.y) return super.height + super.x - super.y; return super.height; }
Could you check if this is still the case after getting this commit? https://github.com/unwrong/Starling-Extension-Graphics/commit/6e10dace1df6a092c9812fdd44739bde64b15060
just noticed the "y" typo myself and was about to send a PR. thanks for the quick fix and the nice extension. :)
will report if i find other small issues.
Cool, glad it's working for both of us! :-)
hello,
i'm not sure if this is specific to the graphics extension or this is a starling bug, but this snippet produces a "y" dependent "height" out of the Shape class:
so the formula for "height" becomes: height = "real graphics height" + x - y
an override in Shape for "get height()" is obvious, but does anyone have any idea why this actually happens?
thanks for any insights