Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with dynamically created/destroyed popup and fixed page header #6987
A page has a fixed page header (data-position='fixed').
A popup is dynamically created and destroyed/removed again on the popupafterclose event.
When destroying and removing the popup, the parent page loses its ui-page-header-fixed class and padding-top style, so that the top of the page content becomes covered by the page header.
As a workaround, the page classes and style are saved before the popup is created and restored later after the popup was destroyed and removed.
The test page includes usage instructions to demonstrate the problem and the workaround.
It appears that this is happening because the _destroy method of the fixedToolbar widget finds the nearest page and removes the -fixed class:
@arschmitz I'm sure there is a good reason this is in here, but can you think of a change that could be made that would prevent this from happening? Perhaps something like checking if any -fixed children exist on the page or something to bypass this logic?