How to close DialogBox when dragged to far at the top

5 replies. Last post: November 7, 2013 9:04 PM by Bernard Xiang
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
T LusbyMember

When using the DialogBox with IFrame.  I notice that it doesn't show the ok,cancel buttons.  Our issue is when the user drags the modal too far to the top of IE browser the user cannot close the DialogBox(modal) or move/drag it back down.

 I modified ContentMode.aspx as an example of what we're doing.  Here is the webdialog we used: 

<ISWebDesktop:WebDialogBox ID="WebDialogBox2" runat="server" ContentURL="HTMLPage.htm"  
        Height="200px" Text="Using IFrame" Width="400px">
        <WindowSettings ContentMode="UseIFrame" WindowOptionsPosition="Right"
            AllowResize="Yes" EnableFastWindowActivation="true" DimWindowWhenBusy="true" AllowClose="Yes" AllowMaximize="Yes" AllowMinimize="Yes">
            <CommandButtonStyle>
                <Active BackColor="#8A887B" BaseStyle="Normal" ForeColor="White">
                </Active>
                <Over BackColor="#C5C2AF" BaseStyle="Normal">
                </Over>
                <Normal BackColor="Control" BorderColor="ControlDarkDark" BorderStyle="Solid" BorderWidth="1px"
                    Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False">
                </Normal>
            </CommandButtonStyle>
            <ContainerStyle BackColor="White" Font-Names="Tahoma" Font-Size="8pt" Height="100%"
                Width="100%">
                <Padding Bottom="4px" Left="4px" Right="4px" Top="4px" />
            </ContainerStyle>
            <WindowStyle>
                <Active BaseStyle="Normal" BorderColor="Gray">
                </Active>
                <Normal BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                    Font-Names="Tahoma" Font-Size="8pt">
                </Normal>
            </WindowStyle>
            <CaptionStyle>
                <Active BackColor="Navy" BackColor2="192, 192, 255" BaseStyle="Normal">
                </Active>
                <Normal BackColor="Gray" BackColor2="Gainsboro" Cursor="Default" Font-Bold="True"
                    Font-Names="Tahoma" Font-Size="10pt" ForeColor="White">
                    <Padding Bottom="2px" Left="2px" Right="2px" Top="2px" />
                </Normal>
            </CaptionStyle>
            <CaptionButtonStyle>
                <Active BaseStyle="Normal">
                    <BorderSettings>
                        <Top Color="Gray" />
                        <Left Color="Gray" />
                    </BorderSettings>
                </Active>
                <Over BaseStyle="Normal">
                    <BorderSettings>
                        <Bottom Color="Gray" />
                        <Right Color="Gray" />
                    </BorderSettings>
                </Over>
                <Normal BorderColor="White" BorderStyle="Solid" BorderWidth="1px" Height="17px" Overflow="Hidden"
                    OverflowX="Hidden" OverflowY="Hidden">
                </Normal>
            </CaptionButtonStyle>
            <CommandButtonDisabledStyle BackColor="Control" BackgroundImage="" BorderColor="ControlDarkDark"
                BorderStyle="Solid" BorderWidth="1px" CustomRules="" Font-Bold="False" Font-Italic="False"
                Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False" ForeColor="Gray">
            </CommandButtonDisabledStyle>
        </WindowSettings>        
        <CommandButtons>
            <ISWebDesktop:WebDialogBoxButton Name="askOK" Text="Add" Type="OK" />
            <ISWebDesktop:WebDialogBoxButton Name="askCancel" Text="Cancel" Type="Cancel" />
        </CommandButtons>
    </ISWebDesktop:WebDialogBox>

 

1 attachment
All times are GMT -5. The time now is 9:50 AM.
Previous Next