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

Splitter Pane with Absolute or Relative Position Content

1 Answer 122 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 12 Jul 2007, 06:03 PM
I'm having a problem with the RadSplitter, and I managed to reproduce it in a very simple example.

Here's the example:

<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="300px" Width="100%" Orientation="Horizontal">

<telerik:RadPane ID="RadPane1" runat="server" Height="50px" Width="">

Top Pane</telerik:RadPane>

<telerik:RadPane ID="RadPane2" runat="server">

<div style="position:absolute;">

Content that is too long and requires scrolling.

</div>

</telerik:RadPane>

</telerik:RadSplitter>


The scrolling for that RadPane2 will not work because it contains a div with absolute positioning.  The same thing happens if the div has its position set to relative instead of absolute.  Because both relative and absolutely positioned divs exhibit the problem, I'm having a hard time laying out the content of my RadPane.

Any ideas on how to get around this?

1 Answer, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 12 Jul 2007, 06:20 PM
Nevermind.  I figured it out.  All you need to do is make the RadPane that contains the div absolutely or relatively positioned.  When I first tried this I didn't think it worked because I was doing it programatically using RadPane2.Style.Add("position", "absolute");

I tried using RadPane2.CssClass = "classThatSetsAbsolutePosition"; and it works fine now.
Tags
Splitter
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Share this question
or