jQuery UI Widgets Forums Navigation Tree Shifted subitems after adding item with subitems

This topic contains 2 replies, has 2 voices, and was last updated by  Marina 4 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Marina

    When i’m adding items on the fly if i add item with subitems its shifting how items positioned in tree and checkboxes.
    But if i expand/collapse manually after, it seems fine.
    what would cause it?
    I tried reproduce it in fiddle, but its appear ok.

    • This topic was modified 4 years, 1 month ago by  Marina.


    Hi Marina,

    To refresh it, you can set the “width” or “height” property of the tree, which will trigger refresh.



    I tried to call ‘refresh’ method before and i tried to set width and height as you suggested and it did not help.
    I must clarify actually that shifting only happening for checkboxes and if i inspect element in chrome i can see that margin-top set to -5, so checkbox appears pushed up. Any other ideas how to fix it? I don’t see any errors in console.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.