Skip to content

Commit 71d6201

Browse files
committed
fix(panel): fixed issue with fullscreen panel view and switching to another dashboard, fixes grafana#5163
1 parent 6f094ef commit 71d6201

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/app/features/dashboard/rowCtrl.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ function (angular, _, config) {
142142
});
143143

144144
module.directive('panelWidth', function() {
145-
var fullscreen = false;
146145

147146
return function(scope, element) {
147+
var fullscreen = false;
148+
148149
function updateWidth() {
149150
if (!fullscreen) {
150151
element[0].style.width = ((scope.panel.span / 1.2) * 10) + '%';

0 commit comments

Comments
 (0)