31 Jan 2013 2:10 AM #1
Unanswered: Ext.Img not displayed in the grid docked items if no available in Chrome's cache
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?
31 Jan 2013 3:27 AM #2
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
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.Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!