Skip to content

It might be a typo on the page for ScrollViewWidget/object:setSize(). #183

Open
@weiwei0530

Description

@weiwei0530
Image

In the Gotchas chapter, it says: "Calling this function will mess with the x position of the scrollbar. To fix this, call object:setScrollHeight() after calling this method."

I'm a bit confused because an issue with the x position should typically be fixed by adjusting the horizontal axis. After testing, it seems the correct fix is to use object:setScrollWidth() instead of object:setScrollHeight().

I'm not a senior developer, so this issue might need further verification by someone more experienced. Thanks a lot.

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