From bb03fe606561902845d5968cd6e87659950dea75 Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Wed, 14 Aug 2013 14:34:33 +0200 Subject: [PATCH] div and css test --- layout/testgui.css | 24 ++++++++++++++++++------ tools/jtageditor.pl | 4 +++- tools/testgui.pl | 2 +- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/layout/testgui.css b/layout/testgui.css index 4c8abb0..572051c 100644 --- a/layout/testgui.css +++ b/layout/testgui.css @@ -23,17 +23,15 @@ /* padding:10px; */ } -.prevImgContainer { - vertical-align:middle; -} + .previewArea { - width:800px; - height:400px; + width:820px; + height:420px; text-align:center; vertical-align:middle; + position:relative; float:left; - position:relative; /* width:320px; */ /* padding:10px; */ /* margin:50px 10px 0 30px; */ @@ -42,6 +40,20 @@ box-shadow: 0 0 10px 5px #fff, 0 0 4px 1px #78b inset; } +.previewArea img{ +border:10px solid transparent; +} + +.prevImgContainer { +height:100%; +} + +.previewArea div div{ +position:absolute; +top:50%; +width:100%; +} + .quickEditArea { float:left; diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 2549cb7..22df3ec 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -12,10 +12,12 @@ print "Content-type: text/html\n\n"; # what happens when files are not writable? +# outsource print_registers and print_fields to xmlOperations +# to be accessible by testgui as well + # --- would be nice, not critical ---- # make sure that error fields are hidden as well! # substitute selectedConfigFile() with "$configFileName" inside print_registers and print_fieldsi -# outsource print_registers and print_fields to xmlOperations # implement a hex/bin/dec converter that is easy to use diff --git a/tools/testgui.pl b/tools/testgui.pl index c8ed771..651dc06 100755 --- a/tools/testgui.pl +++ b/tools/testgui.pl @@ -256,7 +256,7 @@ sub print_sensorArea { my $previewAreaId = "preview_".$sensorId; print ""; print "
$sensorName (id=$sensorId)
"; - print "
[not run yet]
"; + print "
[not run yet]
"; print ""; $quickEditAreaId = "quickEdit_".$sensorId; -- 2.43.0