angular-vertilize icon indicating copy to clipboard operation
angular-vertilize copied to clipboard

Vertilize loaded on page-load

Open buddha13 opened this issue 9 years ago • 3 comments

Hi all,

I'm using angular-vertilize and all seems to work just fine when I resize the window. The vertilize part doesn't work on page load, correct? I've attached two screenshots to maybe clearify my issue; the incorrect.png one shows the chart on page load, the correct.png one shows the same chart after I manually scaled the browser.

I would like the chart to always be completely in view...

incorrect correct

buddha13 avatar Apr 15 '16 09:04 buddha13

For now I sort of fixed it by using css flexbox, but I can't help but wonder there's a angular way of doing this...

buddha13 avatar Apr 15 '16 15:04 buddha13

I fixed the issue by adding:

$timeout(function () { angular.element($window).triggerHandler('resize') }, 500);

at the bottom of the vertilizeContainer directive.

destom01 avatar Aug 11 '16 14:08 destom01

@destom01 ---- how to implement this fix...can you share me code of angular vertilize after adding the above fix.

gauravkumarsingh27 avatar Mar 22 '17 04:03 gauravkumarsingh27