You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using app-layout with app-drawer / app-drawer-layout and app-header / app-header-layout (see MWE below). The paper-badge is attached to an element inside the app-header. The first time the page is loaded, it briefly appears in the correct position (issue #12), than disappears off the right of the screen, exactly 256px too far to the right, which is the exact size of the app-drawer.
When the screen is resized, it recalculates the position to the correct place.
This does not happen when the app-drawer is retracted and not visible.
I tried running updatePosition() at ready but that did not help. Any ideas how this can be solved?
In this MWE it would work by placing the badge below and outside the app-drawer-layout. However, in my real code they are in different elements so it no longer works to do that.
One hack that works is to set a setTimeout on the updatePosition():
I'm using app-layout with app-drawer / app-drawer-layout and app-header / app-header-layout (see MWE below). The paper-badge is attached to an element inside the app-header. The first time the page is loaded, it briefly appears in the correct position (issue #12), than disappears off the right of the screen, exactly 256px too far to the right, which is the exact size of the app-drawer.
When the screen is resized, it recalculates the position to the correct place.
This does not happen when the app-drawer is retracted and not visible.
I tried running updatePosition() at ready but that did not help. Any ideas how this can be solved?
Here is my MWE:
In this MWE it would work by placing the badge below and outside the app-drawer-layout. However, in my real code they are in different elements so it no longer works to do that.
One hack that works is to set a
setTimeout
on theupdatePosition()
:The text was updated successfully, but these errors were encountered: