Skip to content

Should Skin.getFenceBounds ever call getFastBounds? #446

Closed
@adroitwhiz

Description

@adroitwhiz

Expected Behavior

Skin.getFenceBounds() is used to determine how far a drawable can move off-stage, and so it should return a consistent value.

Actual Behavior

Skin.getFenceBounds() calls drawable.getFastBounds(), which returns different values depending on whether the drawable's convex hull exists. While this behavior is overridden in BitmapSkin, SVGSkin retains it.

I'm not sure whether this could ever become a practical problem. Is it supposed to happen/okay?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions