add redrawing of graph, minor css improvements

This commit is contained in:
Uwe Steinmann 2016-08-31 10:33:06 +02:00
parent 080888bb60
commit 92da72b153
2 changed files with 8 additions and 4 deletions

View File

@ -254,6 +254,8 @@ $(document).ready(function() {
body {padding: 0px;} body {padding: 0px;}
div.buttons {float: right; padding-left: 4px; height: 100px; width: 120px; margin-right: 5px;} div.buttons {float: right; padding-left: 4px; height: 100px; width: 120px; margin-right: 5px;}
div.buttons button {margin: 3px; float: right;} div.buttons button {margin: 3px; float: right;}
#preview {background: #f5f5f5; border-top: 1px solid #e3e3e3;}
#preview img {border: 1px solid #bbb; background: #fff; min-height: 100px; min-width: 100px; height: 100px; _width: 100px; padding: 3px; margin: 3px;}
</style> </style>
', 'css'); ', 'css');
$this->htmlStartPage(getMLText("admin_tools")); $this->htmlStartPage(getMLText("admin_tools"));
@ -261,9 +263,11 @@ div.buttons button {margin: 3px; float: right;}
?> ?>
<div id="canvas" style="width: 100%; height:546px; _border: 1px solid #bbb;"></div> <div id="canvas" style="width: 100%; height:546px; _border: 1px solid #bbb;"></div>
<img id="png" style="float: left; border: 1px solid #bbb; min-height: 100px; min-width: 100px; height: 100px; _width: 100px; padding: 3px;" /> <div id="preview">
<div class="buttons"> <img id="png" />
<button class="btn btn-mini" id="setlayout" data-layout="cose">Redraw</button> <div class="buttons">
<button class="btn btn-mini" id="setlayout" data-layout="cose">Redraw</button>
</div>
</div> </div>
<?php <?php
// $this->contentContainerEnd(); // $this->contentContainerEnd();

View File

@ -75,7 +75,7 @@ $(document).ready(function() {
$selworkflow = $this->params['selworkflow']; $selworkflow = $this->params['selworkflow'];
if($selworkflow) { ?> if($selworkflow) { ?>
<div id="workflowgraph"> <div id="workflowgraph">
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $selworkflow->getID(); ?>" width="100%" height="654" style="border: 1px solid #AAA;"></iframe> <iframe src="out.WorkflowGraph.php?workflow=<?php echo $selworkflow->getID(); ?>" width="100%" height="661" style="border: 1px solid #e3e3e3; border-radius: 4px; margin: -1px;"></iframe>
</div> </div>
<?php } <?php }
} /* }}} */ } /* }}} */