vaheqelyan / svelte-grid

A responsive, draggable and resizable grid layout, for Svelte. [NOT MAINTAINED]

Home Page:https://svelte-grid.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Chart JS inside the grid layout,

SekSion opened this issue · comments

commented

Hey, i was trying to use this to render chart-js dynamicly and everything is great except that im having an issue that on load the draggable container doesnt fit on the chart, here is the photo.

Is there something im missing here?

image

commented

Can you share your code using http://svelte.dev/repl please ? It will help me to understand the issue

commented

it seems like the calculations of the wrapper for the draggable element are done before the renderization of the charts, or at least it doenst "refresh" the size of it but its just a guess, can't seem to make a solution to this yet

commented

have a look at this https://svelte.dev/repl/59119f8d9f934f70b6e2a2d04b599aba?version=3.44.2
Removed <div class=demo-widget> on line 109, or you can set the height to 100% for the div element

commented

then i guess it was my brain that wasnt working correctly to not have seen this cause im sure i tried to set the div to 100% and didint work <.< sorry for your time then mate, thx