Window Skin redundancy

2 posts, 0 answers
  1. Steve
    Steve avatar
    1888 posts
    Member since:
    Dec 2008

    Posted 19 Oct 2010 Link to this post

    The Window css seems to be downloading BOTH the gif and png sprites....if they both contain the same elements, that seems a bit redundant (and perhaps why the window seems to "pop" in)?

    So should the icon be it's own image?  Therefore it won't be downloaded if we don't even use the default window icon?

    (validated this on the demo site)

    Steve
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Oct 2010 Link to this post

    Hi Steve,

    This is needed because of the shadow implementation (EnableShadow=true). When a RadWindow is set with that property, it uses the PNG image in order to provide semi-transparent, rounded shadows. When that window however, is set inactive (e.g. when you click on another window opened on the same page), it starts using the GIF file instead as the transparency is not needed at this point. This is happening only if EnableShadow is set to true. If it is set to false, only the GIF is downloaded.

    As for the icon image, it is placed in the sprite for convenience. Even if we remove it from the sprite, its size will not be significantly reduced.

    Best wishes,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top