From: Jan Michel Date: Sun, 4 Aug 2013 14:55:49 +0000 (+0200) Subject: alternate stylesheet for jtageditor X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=db37bc362b552a642501b99e9673599f9381f790;p=mvdsensorcontrol.git alternate stylesheet for jtageditor --- diff --git a/layout/jtageditor_blue.css b/layout/jtageditor_blue.css index 3c9b31e..c51a8a4 100644 --- a/layout/jtageditor_blue.css +++ b/layout/jtageditor_blue.css @@ -170,7 +170,7 @@ table.fields td.button_move_deac { background:#dea; visibility:collapse; max-height:auto; - transition: max-height .4s, visibility .4s; + transition: all .4s; } table.registers td.fieldcontainer { diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 36add97..4a61757 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -740,7 +740,7 @@ function toggleVis(elementId,t) { if(document.getElementById(elementId)){ if( document.getElementById(elementId).style.visibility == "visible") { document.getElementById(elementId).style.visibility = "collapse"; - document.getElementById(elementId).style.maxHeight = "0px"; + document.getElementById(elementId).style.maxHeight = "1px"; visHash[elementId]=false; t.innerHTML = " + "; } else { @@ -761,14 +761,14 @@ function showElement(elementId) { function hideElement(elementId) { if(document.getElementById(elementId)){ document.getElementById(elementId).style.visibility = "hidden" ; - document.getElementById(elementId).style.maxHeight = "0px"; + document.getElementById(elementId).style.maxHeight = "1px"; visHash[elementId]=false; } } function collapseElement(elementId) { if(document.getElementById(elementId)){ document.getElementById(elementId).style.visibility = "collapse" ; - document.getElementById(elementId).style.maxHeight = "0px"; + document.getElementById(elementId).style.maxHeight = "1px"; visHash[elementId]=false; } }