From d9108f70fef2cfa23091843b5dcc1a3e2b974de9 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Sun, 4 Aug 2013 16:48:17 +0200 Subject: [PATCH] alternate stylesheet for jtageditor --- layout/jtageditor_blue.css | 4 ++-- tools/jtageditor.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/jtageditor_blue.css b/layout/jtageditor_blue.css index 371ebb4..3c9b31e 100644 --- a/layout/jtageditor_blue.css +++ b/layout/jtageditor_blue.css @@ -112,8 +112,6 @@ table.fields { border-collapse:collapse; border:hidden; cursor:default; - max-height:none; - transition: max-height .4s; } table.fields td { @@ -171,6 +169,8 @@ table.fields td.button_move_deac { .bitfield { background:#dea; visibility:collapse; + max-height:auto; + transition: max-height .4s, visibility .4s; } table.registers td.fieldcontainer { diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 21827b2..36add97 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -745,7 +745,7 @@ if( document.getElementById(elementId).style.visibility == "visible") { t.innerHTML = " + "; } else { document.getElementById(elementId).style.visibility = "visible" ; - document.getElementById(elementId).style.maxHeight = "none"; + document.getElementById(elementId).style.maxHeight = "600px"; visHash[elementId]=true; t.innerHTML = " − "; } @@ -754,7 +754,7 @@ if( document.getElementById(elementId).style.visibility == "visible") { function showElement(elementId) { if(document.getElementById(elementId)){ document.getElementById(elementId).style.visibility = "visible" ; - document.getElementById(elementId).style.maxHeight = "none"; + document.getElementById(elementId).style.maxHeight = "600px"; visHash[elementId]=true; } } -- 2.43.0