1. #1
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
    baardos is on a distinguished road

      0  

    Default Unanswered: Ext.Img not displayed in the grid docked items if no available in Chrome's cache

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


    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

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    15,067
    Vote Rating
    96
    Answers
    166
    evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold

      0  

    Default


    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
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!