From 77400c189abec1ae8ee1937c873c99db438d1e9f Mon Sep 17 00:00:00 2001 From: pkupczyk <piotr.kupczyk@id.ethz.ch> Date: Mon, 29 Jun 2020 17:17:04 +0200 Subject: [PATCH] NG_UI : layout : make 'rem' font size unit work properly in Chrome (without setting the font size at the root element the 'rem' behaviour was inconsistent - different default sizes were taken depending if the size was assigned to an element itself or inherited from a parent - in Firefox it worked fine) --- openbis_ng_ui/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbis_ng_ui/index.html b/openbis_ng_ui/index.html index 8d6d4ada6e5..82425798c1e 100644 --- a/openbis_ng_ui/index.html +++ b/openbis_ng_ui/index.html @@ -5,6 +5,9 @@ <meta charset="utf-8" /> <link rel="shortcut icon" href="#" /> <style> + html { + font-size: 16px; + } body { height: 100%; min-height: 100%; @@ -23,7 +26,7 @@ </style> <script> function loadError() { - window.onload = function() { + window.onload = function () { let text = 'Error: Could not connect to openBIS.' let h2 = document.createElement('h2') var textnode = document.createTextNode(text) -- GitLab