Skip to content

Commit

Permalink
img height=100%, not w=100%
Browse files Browse the repository at this point in the history
Row height is fixed & set by user, row width is dynamic.
Fixes vbessler/grafana-pictureit#20.
  • Loading branch information
7yl4r committed Jan 8, 2019
1 parent 3313a25 commit fd489f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/module.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div ng-style="{height:ctrl.panel.height,width:'100%','background-repeat':'no-repeat', 'background-size': 'contain'}">
<div style="position: relative;" id="draggableparent">
<img id="pictureit-image" ng-src="{{ctrl.panel.bgimage}}" style="width:100%" />
<img id="pictureit-image" ng-src="{{ctrl.panel.bgimage}}" style="height:100%" />
<div ng-repeat="sensor in ctrl.panel.sensors">
<div ng-if="sensor.visible">
<div id="{{sensor.metric}}" style="text-align: center;" ng-style="{'position': 'absolute',left:sensor.xlocation + '%', 'top':sensor.ylocation + '%', 'font-size':sensor.sizeStr,'font-color':sensor.fontColor}">
Expand Down
Loading

0 comments on commit fd489f2

Please sign in to comment.