arcadeanalytics icon indicating copy to clipboard operation
arcadeanalytics copied to clipboard

Opening a graph widget results in restricted height

Open kixxalot opened this issue 6 years ago • 2 comments

I am able to resize a graph widget, but once I open it, the resulting graph window cannot be resized.

To reproduce: on a graph widget, click the "cross" to open it.

The graph is now displayed in a window with a severely restricted height: that of the left sub-menu.

It would be great to be able to have the graph displayed in a larger window, e.g. by providing an option to resize.

Testing on Ubuntu, using ./gradlew and yarn start

kixxalot avatar Feb 20 '19 10:02 kixxalot

Note that this is quite a severe issue as it can render half the screen useless with just whitespace.

kixxalot avatar Feb 21 '19 16:02 kixxalot

It seems the height of the widgets is hard coded to 570px in src/main/webapp/app/entities/widget/widget-detail.component.html :

<graph-widget *ngIf="widget.type == 'graph'" #widgetImplementation [widget]="widget" widgetHeight="570px" [minimizedView]="false" [oldSnapshotToLoad]="widget.hasSnapshot"> </graph-widget>

However, just changing this 570 to some larger value confuses the "zoom out to entire system" functionality a bit.

kixxalot avatar Mar 28 '19 15:03 kixxalot