Results 1 to 2 of 2

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

  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2012
    Posts
    14
    Vote Rating
    0
      0  

    Default 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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,965
    Answers
    721
    Vote Rating
    931
      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.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •