diff options
author | Aleksejs Cikuns <aleksejs.cikuns@zabbix.com> | 2022-03-03 17:11:39 +0300 |
---|---|---|
committer | Aleksejs Cikuns <aleksejs.cikuns@zabbix.com> | 2022-03-03 17:11:39 +0300 |
commit | dee67720e6f45b651ca3033c10284474090b306b (patch) | |
tree | 94631ece002a219a50a1b1f5c1558b714ecd1d71 | |
parent | f4b08cc08cfaa4dcc9f68b34b8539adfbfb76913 (diff) | |
parent | 3ba4f8e35b2cf864118bbb1686197eecb0a9fd63 (diff) |
..F....... [ZBX-20685] fixed graph widget configuration for small screens
* commit '3ba4f8e35b2cf864118bbb1686197eecb0a9fd63':
..F....... [ZBX-20685] fixed graph widget configuration for small screens
-rw-r--r-- | ChangeLog.d/bugfix/ZBX-20685 | 1 | ||||
-rw-r--r-- | ui/include/classes/widgets/views/widget.svggraph.form.view.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog.d/bugfix/ZBX-20685 b/ChangeLog.d/bugfix/ZBX-20685 new file mode 100644 index 00000000000..7d793a286c1 --- /dev/null +++ b/ChangeLog.d/bugfix/ZBX-20685 @@ -0,0 +1 @@ +..F....... [ZBX-20685] fixed graph widget configuration for small screens (acikuns) diff --git a/ui/include/classes/widgets/views/widget.svggraph.form.view.php b/ui/include/classes/widgets/views/widget.svggraph.form.view.php index d760afd1221..0e926ef7082 100644 --- a/ui/include/classes/widgets/views/widget.svggraph.form.view.php +++ b/ui/include/classes/widgets/views/widget.svggraph.form.view.php @@ -51,7 +51,7 @@ $scripts[] = ' if (jQuery("#svg-graph-preview").length) { var $dialogue_body = jQuery(this), $preview_container = jQuery(".'.ZBX_STYLE_SVG_GRAPH_PREVIEW.'"); - if ($preview_container.offset().top < $dialogue_body.offset().top && $dialogue_body.height() > 400) { + if ($preview_container.offset().top < $dialogue_body.offset().top && $dialogue_body.height() > 500) { jQuery("#svg-graph-preview").css("top", $dialogue_body.offset().top - $preview_container.offset().top); jQuery(".graph-widget-config-tabs .ui-tabs-nav").css("top", $preview_container.height()); } |