No scrollbar in tabbar (attached to layout)

Hi,

I’m using a tabbar attached to a layout. But I don’t get a scrollbar, even if there are enough row to show the scrollbar. What is my mistake?

[code]

Zimmervermittlung Havelland - kostenlose Vermittlung von Urlaubs- und Feriendomizilen.
	<!-- layout and common -->
	<script src="./lib/dhtmlx/dhtmlxLayout/codebase/dhtmlxcommon.js"></script>
	<script src="./lib/dhtmlx/dhtmlxLayout/codebase/dhtmlxlayout.js"></script>
	<script src="./lib/dhtmlx/dhtmlxLayout/codebase/dhtmlxcontainer.js"></script>
	<link rel="stylesheet" type="text/css" href="./lib/dhtmlx/dhtmlxLayout/codebase/dhtmlxlayout.css">
	<link rel="stylesheet" type="text/css" href="./lib/dhtmlx/dhtmlxLayout/codebase/skins/dhtmlxlayout_dhx_skyblue.css">
	
	<!-- toolbar -->
	<script src="./lib/dhtmlx/dhtmlxToolbar/codebase/dhtmlxcommon.js"></script>
	<script src="./lib/dhtmlx/dhtmlxToolbar/codebase/dhtmlxtoolbar.js"></script>
	<link rel="stylesheet" type="text/css" href="./lib/dhtmlx/dhtmlxToolbar/codebase/skins/dhtmlxtoolbar_dhx_skyblue.css">
	
	<!-- calendar -->
	<script src="./lib/dhtmlx/dhtmlxCalendar/codebase/dhtmlxcalendar.js"></script>
	<link rel="stylesheet" type="text/css" href="./lib/dhtmlx/dhtmlxCalendar/codebase/dhtmlxcalendar.css">
	<link rel="stylesheet" type="text/css" href="./lib/dhtmlx/dhtmlxCalendar/codebase/skins/dhtmlxcalendar_dhx_skyblue.css">
	
	<!-- tabbar -->
	<script src="./lib/dhtmlx/dhtmlxTabbar/codebase/dhtmlxcommon.js"></script>
	<script src="./lib/dhtmlx/dhtmlxTabbar/codebase/dhtmlxtabbar.js"></script>
	<script src="./lib/dhtmlx/dhtmlxTabbar/codebase/dhtmlxtabbar_start.js"></script>
	<script src="./lib/dhtmlx/dhtmlxTabbar/codebase/dhtmlxcontainer.js"></script>
	<link rel="stylesheet" type="text/css" href="./lib/dhtmlx/dhtmlxTabbar/codebase/dhtmlxtabbar.css">
	
	<!-- lightbox -->
	<script type="text/javascript" src="./lib/lightbox/js/prototype.js"></script>
	<script type="text/javascript" src="./lib/lightbox/js/scriptaculous.js?load=effects,builder"></script>
	<script type="text/javascript" src="./lib/lightbox/js/lightbox.js"></script>
	<link rel="stylesheet" href="./lib/lightbox/css/lightbox.css" type="text/css" media="screen" />
	
	<style>
		html, body {
			width: 1024px;
			height: 100%;
			margin: 3px;
			overflow: hidden;
		}
	</style>
	
	<script>
		var dhxLayout;
		dhtmlxEvent(window,"load",function() {
			dhxLayout = new dhtmlXLayoutObject(document.body, "3T", "dhx_skyblue");
			
			/* header */
		    dhxLayout.cells("a").setHeight(325);
		    dhxLayout.cells("a").hideHeader();
		    dhxLayout.cells("a").fixSize("fw", "fh");
		    dhxLayout.cells("a").attachObject("frameHead");
		    
		    /* frame left */
		    dhxLayout.cells("b").setWidth(250);
		    dhxLayout.cells("b").hideHeader();
		    dhxLayout.cells("b").fixSize("fw");
		    dhxLayout.cells("b").attachObject("frameLeft");

			 /* frame main */
		    dhxLayout.cells("c").hideHeader();
		    dhxLayout.setAutoSize("c");
			dhxLayout.cells("c").attachObject("frameCenter");
		    statusBar = dhxLayout.cells("c").attachStatusBar();
			statusBar.setText("E-Mail: info@zimmervermittlung-havelland.de - Telefon: (03385) 510593 - Fax: (03385) 513601");
		});
	</script>
</head>
<body>
	<div id="frameHead"></div>
	<div id="frameLeft"></div>
	<div id="frameCenter" style="width: 100%; height: 100%;">
		<div id="tabbar" style=" width: 100%; height: 100%;">
			<div id="tab_information">
				<?php
					for ($i = 0; $i < 50; $i++) {
						echo "tab_information 

\n";
}
?>

tab_configuration

tab_images

tab_map

tab_request

tab_costs




var tabbar;
tabbar = new dhtmlXTabBar(“tabbar”, “top”);
tabbar.setSkin(‘dhx_skyblue’);
tabbar.setImagePath(“./lib/dhtmlx/dhtmlxTabbar/codebase/imgs/”);
tabbar.enableAutoSize(false, false);
tabbar.showInnerScroll();

		tabbar.addTab("information", "Informationen", "100px");
		tabbar.addTab("configuration", "Ausstattung", "100px");
		tabbar.addTab("images", "Bilder", "100px");
		tabbar.addTab("map", "Karte", "100px");
		tabbar.addTab("costs", "Kosten", "100px");
		tabbar.addTab("request", "Anfrage", "100px");
		
		tabbar.setContent("information", "tab_information");
		tabbar.setContent("configuration", "tab_configuration");
		tabbar.setContent("images", "tab_images");
		tabbar.setContent("map", "tab_map");
		tabbar.setContent("request", "tab_request");
		tabbar.setContent("costs", "tab_costs");
		
		tabbar.setTabActive("information");
	</script>
</body>
[/code]

Hi
Where exactly do you want to see scroll? Please, attach an image.

This is what the structure looks like. I expected the scroll in the content-div of the first tab (orange area).

What do the objects (which you place in a content tab zone) look?
In HTML you can specify overflow:auto style for a body, then scroll will automatically arise. If you use OBJECT for place in tab - send an example with the objects of the ‘tab_information’ or other.
Best of all make and attach a completed demo:
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Hi Darya,

thank you for your help (so far :slight_smile:)
I attached a (non-) working sample for you, you can find it here: andreas-schmidt.dyndns.biz/complete_demo.zip. Inside the html-file you will find a comment which shows the div I want to scroll.

Furthermore you want to know, what the content looks like. It could be plain text, tables or more divs, depending on what I want to show. Hopefully this answers your question.

Regards,

Andreas

Sorry, the link once again: http://andreas-schmidt.dyndns.biz/complete_demo.zip

See my attachment. You need to use method attachTabbar() to avoid any incorrect behavior.
index.rar (1.48 KB)

Hi Darya,

this works perfectly great. Thank you very much.

Best regards,

Andreas

You are welcome!