Reputation: 25
Link: http://new.floorbase.nl
Problem: With the first load in IE9, the canvas positions aren't right. But after opening console or change mode, its position is correct.
How can I fix this problem?
Upvotes: 1
Views: 105
Reputation: 655
You have a console.log
statements in your js file. IE natively doesn't understand console.log
because it doesn't have a console and hence the javascript breaks. But when the console is invoked(I am guessing developer tools) the console.log statements are run.
All you have to do is remove or comment out the console.log
statements.
Upvotes: 1
Reputation: 10530
I think, it happens because IE by default renders a page in quirks mode.
quirks mode refers to a technique used by some web browsers for the sake of
maintaining backward compatibility with web pages designed for older browsers,
instead of strictly complying with W3C and IETF standards in standards mode.
If you want to use the higher IE version then add the following line into your <head>
tags
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Upvotes: 0