Force repaint of element
function repaint(element) {
	  setTimeout(function () {
	    try {
	      toggleHidden(element, true);
	      element.offsetHeight; // eslint-disable-line

	      toggleHidden(element, false);
	    } catch (e) {// Do nothing
	    }
	  }, 0);
	}