{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation/issues/6297","labels_url":"https://api.github.com/repos/zurb/foundation/issues/6297/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation/issues/6297/comments","events_url":"https://api.github.com/repos/zurb/foundation/issues/6297/events","html_url":"https://github.com/zurb/foundation/issues/6297","id":57705691,"number":6297,"title":"Reveal modal bug with no animation & scrolling","user":{"login":"mitja-p","id":7253467,"avatar_url":"https://avatars.githubusercontent.com/u/7253467?v=3","gravatar_id":"","url":"https://api.github.com/users/mitja-p","html_url":"https://github.com/mitja-p","followers_url":"https://api.github.com/users/mitja-p/followers","following_url":"https://api.github.com/users/mitja-p/following{/other_user}","gists_url":"https://api.github.com/users/mitja-p/gists{/gist_id}","starred_url":"https://api.github.com/users/mitja-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitja-p/subscriptions","organizations_url":"https://api.github.com/users/mitja-p/orgs","repos_url":"https://api.github.com/users/mitja-p/repos","events_url":"https://api.github.com/users/mitja-p/events{/privacy}","received_events_url":"https://api.github.com/users/mitja-p/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zurb/foundation/labels/reveal","name":"reveal","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"jeaniec","id":5520141,"avatar_url":"https://avatars.githubusercontent.com/u/5520141?v=3","gravatar_id":"","url":"https://api.github.com/users/jeaniec","html_url":"https://github.com/jeaniec","followers_url":"https://api.github.com/users/jeaniec/followers","following_url":"https://api.github.com/users/jeaniec/following{/other_user}","gists_url":"https://api.github.com/users/jeaniec/gists{/gist_id}","starred_url":"https://api.github.com/users/jeaniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeaniec/subscriptions","organizations_url":"https://api.github.com/users/jeaniec/orgs","repos_url":"https://api.github.com/users/jeaniec/repos","events_url":"https://api.github.com/users/jeaniec/events{/privacy}","received_events_url":"https://api.github.com/users/jeaniec/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/zurb/foundation/milestones/22","html_url":"https://github.com/zurb/foundation/milestones/5.5.2","labels_url":"https://api.github.com/repos/zurb/foundation/milestones/22/labels","id":962033,"number":22,"title":"5.5.2","description":"Just final cleanup before v6 of Foundation for Sites.","creator":{"login":"rafibomb","id":5652085,"avatar_url":"https://avatars.githubusercontent.com/u/5652085?v=3","gravatar_id":"","url":"https://api.github.com/users/rafibomb","html_url":"https://github.com/rafibomb","followers_url":"https://api.github.com/users/rafibomb/followers","following_url":"https://api.github.com/users/rafibomb/following{/other_user}","gists_url":"https://api.github.com/users/rafibomb/gists{/gist_id}","starred_url":"https://api.github.com/users/rafibomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafibomb/subscriptions","organizations_url":"https://api.github.com/users/rafibomb/orgs","repos_url":"https://api.github.com/users/rafibomb/repos","events_url":"https://api.github.com/users/rafibomb/events{/privacy}","received_events_url":"https://api.github.com/users/rafibomb/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":56,"state":"open","created_at":"2015-02-02T18:50:10Z","updated_at":"2015-02-25T23:29:36Z","due_on":"2015-03-05T08:00:00Z","closed_at":null},"comments":2,"created_at":"2015-02-14T20:36:24Z","updated_at":"2015-02-25T23:29:36Z","closed_at":"2015-02-25T23:29:36Z","body":"If you do not use animation and have a page where you scroll the position of the modal dialog is from the top of page instead of from the current scrollTop.\r\n\r\nNo animation code:\r\nreveal: {\r\n  animation: 'none',\r\n  animation_speed: 250,\r\n  close_on_background_click: true,\r\n  dismiss_modal_class: 'close-reveal-modal',\r\n  bg_class: 'reveal-modal-bg',\r\n  root_element: 'body',\r\n  bg : $('.reveal-modal-bg'),\r\n  css : {\r\n    open : {\r\n      'opacity': 0,\r\n      'visibility': 'visible',\r\n      'display' : 'block'\r\n    },\r\n    close : {\r\n      'opacity': 1,\r\n      'visibility': 'hidden',\r\n      'display': 'none'\r\n    }\r\n  }\r\n}\r\n\r\n\r\nFor now I have fixed for myself using this code:\r\n        css.top = $(window).scrollTop() + el.data('css-top') + 'px'; // ADDED LINE\r\n        var animData = getAnimationData(settings.animation);\r\n        if (!animData.animate) {\r\n          this.locked = false;\r\n        }\r\n        if (animData.pop) {\r\n          css.top = $(window).scrollTop() - el.data('offset') + 'px';\r\n          var end_css = {\r\n            top: $(window).scrollTop() + el.data('css-top') + 'px',\r\n            opacity: 1\r\n          };\r\n\r\n          return setTimeout(function () {\r\n"},"comment":{"url":"https://api.github.com/repos/zurb/foundation/issues/comments/76084680","html_url":"https://github.com/zurb/foundation/issues/6297#issuecomment-76084680","issue_url":"https://api.github.com/repos/zurb/foundation/issues/6297","id":76084680,"user":{"login":"jeaniec","id":5520141,"avatar_url":"https://avatars.githubusercontent.com/u/5520141?v=3","gravatar_id":"","url":"https://api.github.com/users/jeaniec","html_url":"https://github.com/jeaniec","followers_url":"https://api.github.com/users/jeaniec/followers","following_url":"https://api.github.com/users/jeaniec/following{/other_user}","gists_url":"https://api.github.com/users/jeaniec/gists{/gist_id}","starred_url":"https://api.github.com/users/jeaniec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeaniec/subscriptions","organizations_url":"https://api.github.com/users/jeaniec/orgs","repos_url":"https://api.github.com/users/jeaniec/repos","events_url":"https://api.github.com/users/jeaniec/events{/privacy}","received_events_url":"https://api.github.com/users/jeaniec/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T23:29:36Z","updated_at":"2015-02-25T23:29:36Z","body":"Fixed with #6309."}}