PDA

View Full Version : Ext.Img not displayed in the grid docked items if no available in Chrome's cache



baardos
31 Jan 2013, 2:10 AM
Hi All,

We've run into an issue where Ext.Image is located in docked items of a grid does not show up if the page is loaded after clearing the cache. When the page gets reloaded the image is shown properly. It looks as if there was some kind of initialization issue where initially Ext.Img does not have the image loaded and even though the image is loaded afterwards and it or the docked items do not reflect that by rendering it.

Any idea how to fix or workaround it?

Regards,
Bartek

evant
31 Jan 2013, 3:27 AM
You either need to:
a) Give the image dimensions so it knows the size
b) Wait until the image loads so it knows the size

Otherwise, when the layout runs the image will just be 0x0 pixels and won't have the correct size.