Welcome Guest Search | Active Topics | Sign In | Register

Page width getting larger than 100% when using vertical scroll in splitter panes Options
Laura Matei
Posted: Tuesday, May 5, 2009 9:25:11 AM
Rank: Newbie
Groups: Member

Joined: 4/9/2009
Posts: 6
Hello,

I have an issue with the width of my page when using the horizontal splitter with splitter panes with vertical scroll bars. The page is getting larger than normal with exact the width of the scrollbar, causing a horizontal scrollbar to appear in the browser.Actually even if I take out the vertical scrollbars the page width remains larger than it should be. Do you know what do I do wrong or how can this issue be fixed?
Here is an example:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="exemplu.aspx.cs" Inherits="ClientRequestManager.Pages.exemplu" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!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>SplitterPaneWidthExample</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ProjectsLayoutScriptManager" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="ProjectContentUpdatePanel" runat="server">
<ContentTemplate>
<table>
<tr>
<td>
<eo:Splitter ID="Splitter1" runat="server" Orientation="Horizontal" DividerImage="00080431" AutoFillWindow="True" ExpandCollapseButtonAlign="Center" ExpandButtonImage="00080432" Height="100%">
<eo:SplitterPane ID="topPane" runat="server" Height="350px"
MaxHeight="400" MinHeight="40" ScrollBars="Vertical">
<asp:Panel ID="Panel1" runat="server">
<table>
<tr>
<td>
Hello Top example
</td>
</tr>
</table>
</asp:Panel>
</eo:SplitterPane>
<eo:SplitterPane ID="botPane" runat="server"
ScrollBars="Vertical">
<asp:Panel ID="Panel2" runat="server">
<table>
<tr>
<td>
Hello Bottom
</td>
</tr>
</table>
</asp:Panel>
</eo:SplitterPane>
</eo:Splitter>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>

Thanks a lot,
Laura
eo_support
Posted: Tuesday, May 5, 2009 10:25:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Can you let us know what browser you are using? Or do you see this problem on all browsers?

Thanks!
Laura Matei
Posted: Tuesday, May 5, 2009 10:40:06 AM
Rank: Newbie
Groups: Member

Joined: 4/9/2009
Posts: 6
I use both Mozilla Firefox and IE6. In Mozilla the width that exceed the page is exactly the width of the scroll bar and in IE the exceeded width is half the width of the scrollbar. I haven't tried in other browsers.

Thanks!
eo_support
Posted: Tuesday, May 5, 2009 5:35:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have looked into the issue. The extra width/height in IE is caused by the table outside of the splitter. Try to set the table's cellspacing and cellpadding to 0 should eliminate the extra width/height in IE.

The extra width/height in FireFox are caused by the table as well as body.marginRight and body.marginBottom. Splitter automatically accounts this for IE but not for FireFox. That’s why FireFox has more extra space than IE. We will change our code to automatically account these two values in FireFox and provide you an update build. In the mean time, you can set the splitter’s WidthMargin and HeightMargin to any value that is greater than 10 and it should resolve the issue for you. IE has a default body margin of 10 and FireFox has a default value of 8.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.