From db37bc362b552a642501b99e9673599f9381f790 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sun, 4 Aug 2013 16:55:49 +0200 Subject: [PATCH] alternate stylesheet for jtageditor --- layout/jtageditor_blue.css | 2 +- tools/jtageditor.pl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.43.0