This is a migrated thread and some comments may be shown as answers.

Window Skin redundancy

1 Answer 47 Views
Window
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 19 Oct 2010, 03:20 PM
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

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Oct 2010, 08:42 AM
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
Tags
Window
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Georgi Tunev
Telerik team
Share this question
or