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

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

3 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
PeterVV
Top achievements
Rank 1
PeterVV asked on 07 May 2009, 01:18 PM
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> 
 

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 12 May 2009, 08:15 AM
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.
0
Raj
Top achievements
Rank 1
answered on 31 Aug 2009, 03:51 PM
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
0
Kamen Bundev
Telerik team
answered on 02 Sep 2009, 02:43 PM
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.
Tags
Window
Asked by
PeterVV
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Raj
Top achievements
Rank 1
Kamen Bundev
Telerik team
Share this question
or