Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Commit

Permalink
Position fixed, + larger contact area
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed Jun 22, 2013
1 parent 0fc10fe commit ef278ff
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions demo-jquery.htm
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,5 @@ <h2>Source</h2>
});
});
</script>
<p>Because in IE8 we can't get the appropriate position of the mouse because of the Margin on the body. Lets make the margin 0</p>
<script class="pre">
// demo fix for IE8
if(window.getComputedStyle(document.body, "").getPropertyValue('marginLeft')==="auto"){
document.body.style.width = "100%";
document.body.style.maxWidth = "100%";
document.body.style.margin = "0px";
}
</script>
</body>
</html>

0 comments on commit ef278ff

Please sign in to comment.