{"action":"opened","issue":{"url":"https://api.github.com/repos/google/material-design-lite/issues/3614","labels_url":"https://api.github.com/repos/google/material-design-lite/issues/3614/labels{/name}","comments_url":"https://api.github.com/repos/google/material-design-lite/issues/3614/comments","events_url":"https://api.github.com/repos/google/material-design-lite/issues/3614/events","html_url":"https://github.com/google/material-design-lite/issues/3614","id":127428222,"number":3614,"title":"Layout problem with dynamic DOM","user":{"login":"RanzQ","id":1150613,"avatar_url":"https://avatars.githubusercontent.com/u/1150613?v=3","gravatar_id":"","url":"https://api.github.com/users/RanzQ","html_url":"https://github.com/RanzQ","followers_url":"https://api.github.com/users/RanzQ/followers","following_url":"https://api.github.com/users/RanzQ/following{/other_user}","gists_url":"https://api.github.com/users/RanzQ/gists{/gist_id}","starred_url":"https://api.github.com/users/RanzQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RanzQ/subscriptions","organizations_url":"https://api.github.com/users/RanzQ/orgs","repos_url":"https://api.github.com/users/RanzQ/repos","events_url":"https://api.github.com/users/RanzQ/events{/privacy}","received_events_url":"https://api.github.com/users/RanzQ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T11:49:14Z","updated_at":"2016-01-19T11:49:14Z","closed_at":null,"body":"I'm using [Riot.js](http://riotjs.com/) and I have a root element into which I render a different layout for login page and for the actual app. If I skip the login and call `componentHandler.upgradeAllRegistered()` or `componentHandler.upgradeDom()` after the app is added to dom, everything works as expected. It looks like this:\r\n![image](https://cloud.githubusercontent.com/assets/1150613/12417617/fc105e42-beb1-11e5-9acb-862c6ef81454.png)\r\n\r\nHowever, if I first render the login screen, which looks like this:\r\n![image](https://cloud.githubusercontent.com/assets/1150613/12417642/2ddc0dcc-beb2-11e5-9c27-a59498fe1b66.png)\r\n\r\nThe layout in the app doesn't work anymore:\r\n![image](https://cloud.githubusercontent.com/assets/1150613/12417671/51dbf4d0-beb2-11e5-8f20-78a43b8c6b39.png)\r\n\r\nI've inspected the dom using `diff` and it's identical in both cases. I guess the the issue is within the `MaterialLayout` which doesn't work correctly if I use it multiple times. For me it looks like the layout is adjusted for the login box.\r\n\r\nAny suggestions how to reset the layout? If not possible, I can do a full refresh after login."}}