Closed xPaw closed 1 month ago
This is expected and is due to the responsive nature of the control. If an element is hidden it has no height / width and therefore the responsive calculations can't be made. You need to call the draw()
method when your table is made visible.
Ahh, it's because of the responsiveness, that would make sense. Thanks.
Would it be reasonable to check $(host).height() > 0
or $(buttonEls[0]).outerHeight() > 0
here first? I am looking at the stack trace, it keeps trying to render buttons until it hits 1 and can't go lower any more.
Yup, I like that - thanks for the suggestion. Committed here.
that buttonEls[0]
access should be after buttonEls.length
check.
Repro: https://jsfiddle.net/90o3t51h/
I am initially hiding the table, and when the init is complete I show it, but for some reason it only shows one page button:
Switching the page will update it and show all the other buttons:
Seems to be a problem introduced in v2. This works fine in v1: https://jsfiddle.net/90o3t51h/1/