[ZBX-22506] Unneeded horizontal scroll appears on graph widget if widget displays an error message Created: 2023 Mar 14  Updated: 2024 Apr 10  Resolved: 2023 Mar 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.15rc1, 6.2.8, 6.4.1rc1, 7.0.0alpha1
Fix Version/s: 6.0.15rc1, 6.4.1rc1, 7.0.0alpha1, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Andrejs Verza
Resolution: Fixed Votes: 0
Labels: errormessage, graphwidget, scrollbar
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-03-14-14-58-22-081.png    
Team: Team A
Sprint: Sprint 98 (Mar 2023)
Story Points: 0.125

 Description   

Problem description: In case if there is an error displayed on the SVG graph widget, then a non-required horizontal scroll appears in this widget:

Steps to reproduce (6.0, 6.2):

  1. Create a dashboard with a graph widget
  2. Open ui/app/controllers/CControllerWidgetSvgGraphView.php file
  3. Add "error('Error text');" line in the beginning of the doAction() method (the easiest was to get an error)
  4. Check the display of the graph widget

Steps to reproduce (6.4, 7.0):

  1. Create a dashboard with a graph widget and a URL widget
  2. Open the manifest file of the URL widget (located in ui/widgets/url/manifest.json)
  3. Change the value of the ID field
  4. Check the display of the graph widget

Result: a horizontal scroll bar is observed on he widget.
Expected: there should be no horizontal scroll bar on the graph widget.



 Comments   
Comment by Andrejs Verza [ 2023 Mar 14 ]

Resolved in development branches feature/ZBX-22506-6.0, feature/ZBX-22506-6.4.

Comment by Andrejs Verza [ 2023 Mar 17 ]

Fixed in:

Generated at Fri Jul 04 07:43:29 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.