{"action":"closed","issue":{"number":210,"created_at":"2011-10-18T04:59:53Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I was working on a reduced test case, when I discovered the bug is readily reproducible using the [Full Screen demo](http://codemirror.net/demo/fullscreen.html) from the Code Mirror website.\r\n\r\nIf the `.CodeMirror` div, or any parent div, is given `absolute` or `fixed` positioning, the selection code breaks in IE 8 (And 7 I think). \r\n\r\n**Steps to reproduce:**\r\n\r\n* Visit the [Full Screen demo](http://codemirror.net/demo/fullscreen.html) page in IE 8\r\n* Click in the editor, then hit `Escape`\r\n* Try to select lines in the middle of the screen. \r\n\r\n**Expected Bug that appears:**\r\n\r\nThe editor will immediately scroll to the bottom. In my personal code, I have also run into a bug that causes the selection to start to become offset from the actual text selected – this seems to be caused when lines run longer than the visible part of the editor.\r\n\r\n**Possible Workaround**:\r\nSince it works great with 'relative' positioning, Instead of using CSS, use JavaScript to provide negative `top` and `left` values, and a set `height` and `width`. In my quick test, this seemed to not cause an issue.\r\n","comments":2,"title":"Line selection gets thrown off by absolute or fixed positioning in IE8","updated_at":"2011-10-20T16:01:06Z","url":"https://api.github.com/repos/marijnh/CodeMirror2/issues/210","id":1936318,"assignee":null,"milestone":null,"closed_at":"2011-10-20T16:01:06Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/6868c2908859c318f4fa0911eb6029b0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6868c2908859c318f4fa0911eb6029b0","url":"https://api.github.com/users/dcneiner","id":106974,"login":"dcneiner"},"html_url":"https://github.com/marijnh/CodeMirror2/issues/210","labels":[],"state":"closed"},"legacy":{"number":210,"action":"closed","issue":1936318}}