{"action":"created","issue":{"url":"https://api.github.com/repos/callemall/material-ui/issues/1676","repository_url":"https://api.github.com/repos/callemall/material-ui","labels_url":"https://api.github.com/repos/callemall/material-ui/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/callemall/material-ui/issues/1676/comments","events_url":"https://api.github.com/repos/callemall/material-ui/issues/1676/events","html_url":"https://github.com/callemall/material-ui/issues/1676","id":107158693,"number":1676,"title":"[Dialog] Incorrect paddingTop when opening Dialog with dynamic content","user":{"login":"grimor","id":438122,"avatar_url":"https://avatars.githubusercontent.com/u/438122?v=3","gravatar_id":"","url":"https://api.github.com/users/grimor","html_url":"https://github.com/grimor","followers_url":"https://api.github.com/users/grimor/followers","following_url":"https://api.github.com/users/grimor/following{/other_user}","gists_url":"https://api.github.com/users/grimor/gists{/gist_id}","starred_url":"https://api.github.com/users/grimor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimor/subscriptions","organizations_url":"https://api.github.com/users/grimor/orgs","repos_url":"https://api.github.com/users/grimor/repos","events_url":"https://api.github.com/users/grimor/events{/privacy}","received_events_url":"https://api.github.com/users/grimor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/callemall/material-ui/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-09-18T08:47:47Z","updated_at":"2016-05-03T21:47:06Z","closed_at":null,"body":"When I have structure like that \r\n```javascript\r\n<Dialog ref=\"mediaModal\" actions={standardActions} title=\"Multimedia Browser\" autoDetectWindowHeight={true} autoScrollBodyContent={false} contentClassName=\"media-modal\" contentStyle={{ width: '90%', maxWidth: 'auto', height: '100%' }} contentInnerStyle={{ maxHeight: '100%' }}>\r\n    <div className=\"media-modal__menu\">\r\n      <List subheader=\"Media types\">\r\n        <ListItem primaryText=\"Images\" leftIcon={<FontIcon className=\"material-icons\">image</FontIcon>} />\r\n        <ListItem primaryText=\"Audio\" leftIcon={<FontIcon className=\"material-icons\">library_music</FontIcon>} />\r\n        <ListItem primaryText=\"Videos\" leftIcon={<FontIcon className=\"material-icons\">video_library</FontIcon>} />\r\n        <ListItem primaryText=\"3D\" leftIcon={<FontIcon className=\"material-icons\">blur_on</FontIcon>} />\r\n      </List>\r\n    </div>\r\n    <div className=\"media-modal__content\">\r\n      <MediaList items={items}/>\r\n    </div>\r\n</Dialog>\r\n```\r\n\r\nWhere `MediaList` contain grid of images. It gets paddingTop calculated incorrectly ![Padding on first opening](http://i.imgur.com/mLTExC5.png)\r\n\r\nBut, on second `_positionUpdate()` call it have proper positioning. ![On update](http://i.imgur.com/7INAjwC.png)\r\n\r\nI suppose that images get calculated their dimensions later than modal (I've set `width` and `height` properties on `<img>` tag)\r\n\r\nI'll try to work on PR on that, but maybe someone is smarter than me :)"},"comment":{"url":"https://api.github.com/repos/callemall/material-ui/issues/comments/216674774","html_url":"https://github.com/callemall/material-ui/issues/1676#issuecomment-216674774","issue_url":"https://api.github.com/repos/callemall/material-ui/issues/1676","id":216674774,"user":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T21:47:05Z","updated_at":"2016-05-03T21:47:05Z","body":"@tintin1343 No, I was referring to a related issue.\r\n"}}