Skip to content

Label not moving with parent's layer. #3128

@1scaR1

Description

@1scaR1

Hello!
There is one bug with #3090 merge(and works also at HEAD of develop branch): after changing position of ccui.Layout with ccui.Text(may be simple cc.Layer with cc.LabelTTF) , text stay at the same position on screen(not moving with layout).
But this bug works in case of using specific layer for my game, which uses topological sorting of sprites on it. Sorting is implemented with update() function and callingthis.scheduleUpdate().

Tested on Google Chrome and Safari.

Here is the sample code of reproducing of bug: http://pastebin.com/EehPwt7U
and some images:

  • Initial positions
    Initial positions
  • After moving in ccui.ListView
    After moving in ccui.ListView

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