Grid subrow is cutoff when loading content with images

Hi,



We own the dhtmlx pro suite… when loading a subrow with images the subrow is cutoff (height of container is not enough to display content)… i’m guessing that this is because after the xml is loaded the height for the subrow is set, and then the image is loaded and takes additional space, though the subrow height is not reset after that… is there a fix for this? i’m thinking the resizing/sizing code should be called after the xml content is loaded (not xml itself)… does that make sense?



Thanks ,

Martino

though the subrow height is not reset after that
Component can detect moment when HTML data loaded in subrow and ajust its size accordingly, but if you have some dyn. loading elements ( such as images ) it not possible to detect the moment when content is fully ready.

>>the resizing/sizing code should be called after the xml content is loaded
The event called after data loaded from XML and injected in HTML page, the problem is that document need some more time to load images, and no any global event generated after full loading. So there is no simple way to catch moment of full loading.

>>is there a fix for this?
You can
a) hardcode necessary size of sub-row ( if you know it )
b) call grid.cell(i,j).close(); grid.cell(i,j).open(); with some timeout to recalculate size of sub-row after some time.
c) define image height as part of image tag
<img height=“NNpx” …
or
<img style=‘height:NNpx’ …