tooltip bug in scheduler when exist more than 1 div in body

Tooltip for event is displayed in scheduler lower than it should be if layout looks like :

		<div id="oneDiv">...</div>
		<div id="scheduler_here">...</div>

This bug exists in FF 3.5 and IE8 at least.

To reproduce this error, simply replace content of original file (samples\03_extensions\20_tooltip.html) in scheduler’s samples with following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<title>For demo purpose only :: Tooltip</title>
	<script src='../../codebase/dhtmlxscheduler.js' type="text/javascript" charset="utf-8"></script>
	<script src='../../codebase/ext/dhtmlxscheduler_timeline.js' type="text/javascript" charset="utf-8"></script>
	<script src='../../codebase/ext/dhtmlxscheduler_treetimeline.js' type="text/javascript" charset="utf-8"></script>
	<script src='../../codebase/ext/dhtmlxscheduler_tooltip.js' type="text/javascript" charset="utf-8"></script>
	<link rel='stylesheet' type='text/css' href='../../codebase/dhtmlxscheduler.css'>
	<link rel="stylesheet" href="../../codebase/ext/dhtmlxscheduler_ext.css" type="text/css" media="screen" title="no title" charset="utf-8">
<style type="text/css" media="screen">
	html, body{
		padding-top:5px; padding-left:5px;
		text-align:left !important;

<script type="text/javascript" charset="utf-8">
	function init() {"%Y-%m-%d %H:%i"); 
		scheduler.locale.labels.timeline_tab = "Timeline";
		scheduler.config.xml_date="%Y-%m-%d %H:%i";
		scheduler.config.event_duration = 45;
		scheduler.config.full_day = true;
		elements = [ // original hierarhical array to display
			{key:10, label:"Web Testing Dep.", open: true, children: [
				{key:20, label:"Elizabeth Taylor"},
				{key:30, label:"Managers", open: true, children: [
					{key:40, label:"John Williams"},
					{key:50, label:"David Miller"}
				{key:60, label:"Linda Brown"},
				{key:70, label:"George Lucas"}
			{key:80, label:"Kate Moss"},
			{key:90, label:"Dian Fossey"}
			section_autoheight: false,
			name:	"timeline",
			x_unit:	"minute",
			x_date:	"%H:%i",
			x_step:	30,
			x_size: 24,
			x_start: 16,
			x_length:	48,
			y_unit: elements,
			y_property:	"section_id",
			render: "tree",
			folder_events_available: true,

		//Data loading
			{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
			{name:"custom", height:23, type:"timeline", options:null , map_to:"section_id" }, //type should be the same as name of the tab
			{name:"time", height:72, type:"time", map_to:"auto"}
		scheduler.init('scheduler_here',new Date(2009,5,30),"timeline");
			{ start_date: "2009-06-30 09:00", end_date: "2009-06-30 12:00", text:"Task A-12458", section_id:20},
			{ start_date: "2009-06-30 10:00", end_date: "2009-06-30 16:00", text:"Task A-89411", section_id:20},
			{ start_date: "2009-06-30 10:00", end_date: "2009-06-30 14:00", text:"Task A-64168", section_id:20},
			{ start_date: "2009-06-30 16:00", end_date: "2009-06-30 17:00", text:"Task A-46598", section_id:20},
			{ start_date: "2009-06-30 10:00", end_date: "2009-06-30 17:00", text:"Task for Managers folder", section_id:30},
			{ start_date: "2009-06-30 12:00", end_date: "2009-06-30 20:00", text:"Task B-48865", section_id:40},
			{ start_date: "2009-06-30 14:00", end_date: "2009-06-30 16:00", text:"Task B-44864", section_id:40},
			{ start_date: "2009-06-30 16:30", end_date: "2009-06-30 18:00", text:"Task B-46558", section_id:40},
			{ start_date: "2009-06-30 18:30", end_date: "2009-06-30 20:00", text:"Task B-45564", section_id:40},
			{ start_date: "2009-06-30 08:00", end_date: "2009-06-30 12:00", text:"Task C-32421", section_id:50},
			{ start_date: "2009-06-30 14:30", end_date: "2009-06-30 16:45", text:"Task C-14244", section_id:50},
			{ start_date: "2009-06-30 09:20", end_date: "2009-06-30 12:20", text:"Task D-52688", section_id:60},
			{ start_date: "2009-06-30 11:40", end_date: "2009-06-30 16:30", text:"Task D-46588", section_id:60},
			{ start_date: "2009-06-30 12:00", end_date: "2009-06-30 18:00", text:"Task D-12458", section_id:60}

<body onload="init();">
		<div id="oneDiv" style="width: 100%; height : 100px; vertical-align: middle; text-align:center; font-weight:bolder;">one div</div>
		<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
			<div class="dhx_cal_navline">
				<div class="dhx_cal_prev_button">&nbsp;</div>
				<div class="dhx_cal_next_button">&nbsp;</div>
				<div class="dhx_cal_today_button"></div>
				<div class="dhx_cal_date"></div>
				<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
				<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
				<div class="dhx_cal_tab" name="timeline_tab" style="right:280px;"></div>
				<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
			<div class="dhx_cal_header">
			<div class="dhx_cal_data">

P.S. Also when tooltip displayd in IE8 there is no any bottom and right border, so tooltip seems to be cutted.

Problem confirmed, fix will be available in few day.

Thanks for support.

You can try to use the attached js file instead of the original one. (1.69 KB)

Thanks. “Tooltip for event is displayed in scheduler lower than it should be” fixed.
But “when tooltip displayd in IE8 there is no any bottom and right border, so tooltip seems to be cutted” still exists.

Just run your sample (samples\03_extensions\20_tooltip.html) with your fixed js.

This bug exists in IE6+.

Yep, updated css is attached - try to this one, it will improve look of tooltips in IE (1.71 KB)

Thanks! now all my bugs are fixed.