Skip to content

Commit

Permalink
Fixes #1530 cross ref to #1596
Browse files Browse the repository at this point in the history
Added new code tested over win10 with screen custom to 100%
and screen custom to 125%
Having Single Disk chart loaded dynamically on widget resize
we have to compute offset width and height

Signed-off-by: Mirko Arena <mirko.arena@gmail.com>
  • Loading branch information
MFlyer committed Jan 4, 2017
1 parent 82192f2 commit a99c8d7
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -533,6 +533,10 @@ DiskUtilizationWidget = RockStorWidgetView.extend({
_this.selectedDisk = _this.$('#disk-select').val();
});
this.$('#top-disks-container').css('width', '60%');
this.$('#single-disk-chart').css('width', '100%');
this.$('#single-disk-chart').css('height', '100%');
this.$('#single-disk-chart').width = this.$('#single-disk-chart').offsetWidth;
this.$('#single-disk-chart').height = this.$('#single-disk-chart').offsetHeight;
} else {
this.$('#top-disks-container').css('width', '70%');
_this.SingleDiskgraphRendered = false;
Expand Down

0 comments on commit a99c8d7

Please sign in to comment.