Window used within an IFrame will shift 2px after move (IE)

4 posts, 0 answers
  1. PeterVV
    PeterVV avatar
    7 posts
    Member since:
    Jul 2006

    Posted 07 May 2009 Link to this post

    When using an Radwindow within an IFrame the window will shift another 2 pixels after dragging the window (or just by clicking on the titlebar). This only happens if the attribute frameborder of the IFrame is set to zero (no border). If the IFrame has a border this behavior doesn't occur (frameborder="1"). The problem only occurs in Internet Explorer, not in Firefox.

    Page1 default.aspx  (Containing IFrame)
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default"%> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
       <title></title>  
    </head> 
    <body> 
       <form id="form1" runat="server">  
       <div> 
          <iframe src="default2.aspx" width="800" height="600" frameborder="0" style="left: 50px; top: 50px; position: absolute"></iframe> 
       </div> 
       </form> 
    </body> 
    </html> 
     


    Page2 default2.aspx (Page is loaded in IFrame and shows a radwindow)
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2"%> 
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
       <title></title>  
    </head> 
    <body> 
       <form id="form1" runat="server">  
       <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
       </telerik:RadScriptManager> 
       <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
          <Windows> 
             <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="http://www.google.com" 
                VisibleOnPageLoad="True" Skin="Vista">  
             </telerik:RadWindow> 
          </Windows> 
       </telerik:RadWindowManager> 
       </form> 
    </body> 
    </html> 
     
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 May 2009 Link to this post

    Hello PeterVV,

    Thank you for bringing this problem to our attention - it will be fixed with the next update. Note however that in scenarios where the content page (the one with the RadWindow in it) and the topmost page are in different domains, the problem will appear again. When calculating the position of the window, we need to get info for the wrapper and if it is in a different domain, the browser security will not allow us to do that.

    Your points were updated.

    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Raj
    Raj avatar
    3 posts
    Member since:
    Aug 2008

    Posted 31 Aug 2009 Link to this post

    Hi,
        I have similar problem as this but with RadCombo's list section. When i load a page with RadCombo's into a iFrame with border=0, radcombo's list (bottom part when combo opened) is shifted 2px to the left. all pages involved are in same domain. Pls let me know how to fix this.

    Thanks
  4. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 02 Sep 2009 Link to this post

    Hello Raj,

    I failed to reproduce your issue - can you explain a bit more about it in order to help me see it? I need the version of your RadControls and which browser are you using. Some XHMTL markup will also help (or a sample project / live URL). Thank you in advance.

    Kind regards,
    Kamen Bundev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top