mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed graphpanel editmode and custom width for right side legend for IE11
This commit is contained in:
@@ -131,8 +131,11 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
|
|||||||
elem.empty();
|
elem.empty();
|
||||||
|
|
||||||
// Set min-width if side style and there is a value, otherwise remove the CSS propery
|
// Set min-width if side style and there is a value, otherwise remove the CSS propery
|
||||||
var width = panel.legend.rightSide && panel.legend.sideWidth ? panel.legend.sideWidth + 'px' : '';
|
// Set width so it works with IE11
|
||||||
|
var width: any = panel.legend.rightSide && panel.legend.sideWidth ? panel.legend.sideWidth + 'px' : '';
|
||||||
|
var ieWidth: any = panel.legend.rightSide && panel.legend.sideWidth ? panel.legend.sideWidth - 1 + 'px' : '';
|
||||||
elem.css('min-width', width);
|
elem.css('min-width', width);
|
||||||
|
elem.css('width', ieWidth);
|
||||||
|
|
||||||
elem.toggleClass('graph-legend-table', panel.legend.alignAsTable === true);
|
elem.toggleClass('graph-legend-table', panel.legend.alignAsTable === true);
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ div.flot-text {
|
|||||||
border: $panel-border;
|
border: $panel-border;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
height: 100%;
|
//height: 100%;
|
||||||
|
|
||||||
&.panel-transparent {
|
&.panel-transparent {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|||||||
Reference in New Issue
Block a user