Autosize on Image

4 posts, 0 answers
  1. Alan T
    Alan T avatar
    125 posts
    Member since:
    Apr 2010

    Posted 18 Jun 2010 Link to this post

    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 ?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Jun 2010 Link to this post

    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.
  3. Alan T
    Alan T avatar
    125 posts
    Member since:
    Apr 2010

    Posted 18 Jun 2010 Link to this post

    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
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 21 Jun 2010 Link to this post

    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
Back to Top