|
|
@@ -90,6 +90,14 @@ function (angular, _, $) {
|
|
|
}
|
|
|
|
|
|
function render() {
|
|
|
+ if (panel.legend.rightSide) {
|
|
|
+ var panelheight = scope.ctrl.height || scope.ctrl.panel.height || scope.ctrl.row.height;
|
|
|
+ $container.css("height", panelheight);
|
|
|
+ $container.toggleClass('graph-legend-fixed-height', true);
|
|
|
+ } else {
|
|
|
+ $container.css("height", "");
|
|
|
+ }
|
|
|
+
|
|
|
if (firstRender) {
|
|
|
elem.append($container);
|
|
|
$container.on('click', '.graph-legend-icon', openColorSelector);
|