kopia lustrzana https://github.com/FacilMap/facilmap
Fix resizing of legend on page load
rodzic
c85eee37a1
commit
3c8c9e4f3f
|
@ -125,7 +125,7 @@ fm.app.directive("fmLegend", function($sce, fmUtils, $compile, fmIcons, fmFilter
|
||||||
rec(0, { });
|
rec(0, { });
|
||||||
}
|
}
|
||||||
|
|
||||||
resize();
|
setTimeout(resize, 0);
|
||||||
scope.$watch(getMaxScale, resize);
|
scope.$watch(getMaxScale, resize);
|
||||||
scope.$watch("showXs", function(s) { s && setTimeout(resize, 0); })
|
scope.$watch("showXs", function(s) { s && setTimeout(resize, 0); })
|
||||||
$(window).resize(resize);
|
$(window).resize(resize);
|
||||||
|
|
Ładowanie…
Reference in New Issue