vbessler / grafana-pictureit

Grafana Panel Plugin. Allows Measurement Values to be Overlaid on top of a Picture
Other
18 stars 20 forks source link

max size for image? #20

Open flopp999 opened 6 years ago

flopp999 commented 6 years ago

I have tried 2 different images now and I cannot the whole image for both my images.

Anyone else that have the same problem?

ghost commented 6 years ago

I'm facing the same issue. 400px seems to be the maximum in height.

pointer2002 commented 6 years ago

workarround : in this plugin change the value of ng-style in module.html by 100% before : module.html:<div ng-style="{height:ctrl.panel.height,width:'100%' after : module.html:<div ng-style="{height:'100%',width:'100%',

Worked for me

7yl4r commented 5 years ago

oops. please disregard commits above. I should have tested before publishing. That fix doesn't work on that fork.

7yl4r commented 5 years ago

I see several commits on forks that may be relevant to this issue (https://github.com/wehkamp/grafana-pictureit/commit/0eb38a4ad1b39297e4fa7e596f2a89e00aea36a3, https://github.com/wehkamp/grafana-pictureit/commit/a0e52805b41d9ef2ffc1f6850a7f4f2b37715f04, https://github.com/wehkamp/grafana-pictureit/commit/7803490299c5dda6a5588e023a061a6b90f4269d) but @pointer2002 's fix above and the latest on https://github.com/TLMiot/grafana-pictureit still had this issue when I tested.

It seems like a simple fix but I cannot determine why the panel height is frozen and image will not scale to fit the panel.

image

image

Is it is just me and my older grafana install ( Grafana v4.4.3 (commit: 54c79c5) )?

TehSemni commented 2 years ago

height:'100%

Hi,

I tried this, then the plugin is disabled due to modified content!