jQWidgets Forums
jQuery UI Widgets › Forums › Layouts › Splitter › Nested Splitter inside Tabs
Tagged: Splitter Tabs layout resize
This topic contains 8 replies, has 4 voices, and was last updated by Nadezhda 10 years, 7 months ago.
-
Author
-
I tried combining examples from your demos (2.2) to create a layout where
1. Two tabs on the outside (100% width and height of browser window)
2. One of the tabs has nested splits with panels for west,north,east,south,center
3. The panels should be resizing gracefully with browser window resizingPlease advise what is going wrong here ?
Thanks a lot
The Resulting screen shot is :
: https://docs.google.com/drawings/d/1oH5duPIZe1tFuoYh4_ZqAGC603ORwmy4fU7s4_HgnHQ/edit1
2
3
4
5
6
7
8
9
10
11
12 $(document).ready(function () {
13 var theme = ”;
14 $(“#tabs”).jqxTabs({ theme: theme, height: ‘100%’, width: ‘100%’ });
15
16 $(‘#container’).jqxSplitter({ theme: theme, width: ‘100%’, height: ‘100%’, orientation: ‘horizontal’, panels: [{ size: 12 0 }, { size: 450}] });
17 $(‘#nested’).jqxSplitter({ theme: theme, orientation: ‘vertical’, panels: [{ size: ‘300px’}, { size: ‘300px’, collapsed: false }, {size: ‘300px’} ] });
18
19 });
20
21
22
23 html, body
24 {
25 height: 100%;
26 width: 100%;
27 margin: 0px;
28 padding: 0px;
29 overflow: hidden;
30 }
31
32
33
3435
36 Tab 1
37 Tab 2
38
39
4041 Tab1 Stuff
4243
444546 North
4748
4950 West
5152
53 Center
5455
56 East
5758
59
60 South
6162
63
64
65Here is the formatted code
<!DOCTYPE html><html lang="en"><head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtabs.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxsplitter.js"></script> <script type="text/javascript" src="../../scripts/gettheme.js"></script> <script type="text/javascript"> $(document).ready(function () { var theme = ''; $("#tabs").jqxTabs({ theme: theme, height: '100%', width: '100%' }); $('#container').jqxSplitter({ theme: theme, width: '100%', height: '100%', orientation: 'horizontal', panels: [{ size: 120 }, { size: 450}] }); $('#nested').jqxSplitter({ theme: theme, orientation: 'vertical', panels: [{ size: '300px'}, { size: '300px', collapsed: false }, {size: '300px'} ] }); }); </script> <style type="text/css"> html, body { height: 100%; width: 100%; margin: 0px; padding: 0px; overflow: hidden; } </style></head><body class='default'> <div id="tabs"> <ul> <li style="margin-left: 30px;">Tab 1</li> <li>Tab 2</li> </ul> <div id='tab1'> Tab1 Stuff </div> <div id="container"> <div class="splitter-panel"> North </div> <div class="splitter-panel" id="nested"> <div class="splitter-panel"> West </div> <div class="splitter-panel" id="secondNested"> Center </div> <div class="splitter-panel"> East </div> </div> <div class="splitter-panel" id="thirdNested"> South </div> </div> </div></body></html>
The problem is that the Center Panel should not be collapsed – and it is not easy to “open” it up.
this is a screenshot of the bug.
Hi maximus,
It is not possible to have nested splitters inside jqxTabs. We’ll do our best to support such scenarios in the future versions.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter
Thanks for your response. I suspected this might be the case. However …
I played with this some more .. Here is what I am finding :a. It does work if the nested splitter is on the first tab – ( the default landing tab in general I suspect).
b. If it is on the second tab – it also works if you just resize the browser windowThis leads me to believe – the 2.2 code is almost there –>
So the natural question becomes :
Is there a way for me to tell the Tab panel to re-layout itself – each time the Tab is clicked ?
This will be a work around for now ( in the application code – to call this method on a tab click event)Regards
maximusHi maximus,
The jqxTabs and jqxSplitter widgets have a function called ‘refresh’ which performs a new layout when it is called.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter
I did some more testing with nested splitter as the first tab — You are right – even though it appears to work at first glance.
When I load content into those panels – the splitter stops functioning totally.I will have to wait for the next version for this feature – Let us know when we can expect this – if it is in the roadmap
Thanks
Hi, There
Is there any way to have a nested Splitters inside the tab..
I have drawn the tab in Paint attaching it below….
Is it Possible Now in 3.5 !!
-
AuthorPosts
You must be logged in to reply to this topic.