Fix resizing of legend on page load

pull/108/head
Candid Dauth 2017-05-14 22:15:30 +02:00
rodzic c85eee37a1
commit 3c8c9e4f3f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -125,7 +125,7 @@ fm.app.directive("fmLegend", function($sce, fmUtils, $compile, fmIcons, fmFilter
rec(0, { });
}
resize();
setTimeout(resize, 0);
scope.$watch(getMaxScale, resize);
scope.$watch("showXs", function(s) { s && setTimeout(resize, 0); })
$(window).resize(resize);