Commits

Jun Omae committed b2433aa

1.0dev: Fixed double scrollbars with IE8 compatibility mode and force IE family to render in the recent mode

Comments (0)

Files changed (2)

trac/htdocs/css/trac.css

 /* -*- coding: utf-8 -*- */
+html { overflow-y: scroll }
 body {
  background: #fff;
  color: #000;
  margin: 10px;
  padding: 0;
- overflow-y: scroll;
 }
 body, th, tr {
  font: normal 13px Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;

trac/templates/layout.html

     <title py:with="title = list(select('title/text()'))">
       <py:if test="title">${title} – </py:if>${project.name or 'Trac'}
     </title>
-    <meta py:if="chrome.content_type == 'text/html'" http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <py:if test="chrome.content_type == 'text/html'">
+      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    </py:if>
     <meta py:for="meta in chrome.metas" py:attrs="meta"/>
     <!--[if IE]><script type="text/javascript">
       if (/^#__msie303:/.test(window.location.hash))