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

Autosize on Image

3 Answers 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alan T
Top achievements
Rank 1
Alan T asked on 18 Jun 2010, 12:20 PM
I'm opening an image in radwindow. Rather than resizing the window to fit the image, the image shrinks. Is there a way around this ? Or am i doing something wrong ?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jun 2010, 02:21 PM
Hello,

When I set the AutoSize property of RadWindowManager to "True", the window resized according to image shown in window as demonstrated here.

Could you provide some more information about the code that you tried?

-Shinu.
0
Alan T
Top achievements
Rank 1
answered on 18 Jun 2010, 09:59 PM
i'm literally linking to the image itself. not inside a div or a page.

so i've got a radwindow, radwindow1

            function openIMG(url) {
                radopen(url, "radwindow1");
            }

where url would be the actual image address. something.jpeg
0
Georgi Tunev
Telerik team
answered on 21 Jun 2010, 03:03 PM
Hi Alan,

I'm afraid you cannot use AutoSize in such scenario. The AutoSize functionality calculates the size of the content page in order to resize the RadWindow accordingly. In your case however, there is no page because you are opening the image directly in RadWindow.


Regards,
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
Alan T
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Alan T
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or