Commit 298210db authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#940 - Interface is squished in Google Chrome

parent c5e09542
......@@ -35,10 +35,8 @@
/* (en) Layout: width, background, borders */
/* (de) Layout: Breite, Hintergrund, Rahmen */
/*WARNING: ADded a overrode for this setting in main.tpl with javascript to target non chrome browsers,
This has to be changed too in case that page_margins get changed. Reason: Chrome does not support the
display: table; attribute correctly*/
#page_margins { min-width: 980px; max-width: 80%; background: #fff;}
/*#page_margins { min-width: 980px; max-width: 80%; background: #fff;}*/
#page_margins { min-width: 980px; max-width: 80%; background: #fff; display: inline-block;}
#page{ padding: 10px; }
/* (en) Designing main layout elements */
......
......@@ -58,14 +58,6 @@
<script type="text/javascript" src="js/scrigo.js.php"></script>
<script type="text/javascript" src="js/uni-form/jquery.js"></script>
<script type="text/javascript" src="js/uni-form/uni-form.jquery.js"></script>
<script language="JavaScript" type="text/javascript">
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if(!is_chrome) {
var style = document.createElement('style');
style.innerHTML = '#page_margins { min-width: 980px; max-width: 80%; background: #fff; display: table;}';
document.getElementsByTagName("head")[0].appendChild(style);
}
</script>
</head>
<body onload="loadInitContent()">
<div id="page_margins">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment