Change pass login. Graph tree view width

This commit is contained in:
Pablo Aragon 2023-03-22 11:23:07 +01:00
parent 6e8eb9800f
commit 904b526b30
4 changed files with 18 additions and 8 deletions

View File

@ -702,6 +702,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
$eventsGraph = html_print_div( $eventsGraph = html_print_div(
[ [
'style' => 'height: 150px;', 'style' => 'height: 150px;',
'class' => 'max-graph-tree-view',
'content' => graph_graphic_agentevents( 'content' => graph_graphic_agentevents(
$id_agente, $id_agente,
'500px;', '500px;',
@ -934,5 +935,18 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
} }
$('.max-graph-tree-view').ready(function() {
widthGraph();
});
$(window).resize(function() {
widthGraph();
});
function widthGraph () {
var parentWidth = $('.max-graph-tree-view').parent().width();
$('.max-graph-tree-view').children().width(parentWidth + 5);
}
</script>"; </script>";
} }

View File

@ -226,8 +226,8 @@ $(document).ready(function() {
resizable: false, resizable: false,
draggable: true, draggable: true,
modal: true, modal: true,
height: 450, height: 410,
width: 620, width: 390,
overlay: { overlay: {
opacity: 0.5, opacity: 0.5,
background: "black" background: "black"

View File

@ -455,7 +455,7 @@ div.form_message_alert {
width: 90%; width: 90%;
clear: both; clear: both;
padding-top: 20px; padding-top: 20px;
padding-left: 40px; padding-left: 20px;
} }
div.form_message_alert ul li { div.form_message_alert ul li {
@ -765,7 +765,7 @@ button.submitButton:hover {
background-position: 0 !important; background-position: 0 !important;
} }
button.submitButton > span { button.submitButton:not(.mini) > span {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
font-size: 15pt; font-size: 15pt;
} }

View File

@ -407,7 +407,3 @@ div#tree-controller-recipient {
.tree-node .node-icon.node-status { .tree-node .node-icon.node-status {
border: 0; border: 0;
} }
.max-graph-tree-view {
width: calc(100% - 100px);
}