当我第一次使用有效数据调用以下内容时......一切都很好,表格看起来很棒:
<script language = "javascript">
scheduler.clearAll();
scheduler.createTimelineView({
section_autoheight: false,
name: "timeline",
x_unit: "day",
x_date: "%d",
x_step: 1,
x_size: 30,
x_start: 1,
y_unit: <?php echo json_encode($json); ?>,
y_property: "section_id",
render: "tree",
fit_events: true,
dy: 30,
//dx: 150,
second_scale:{
x_unit: "day",
x_date: "%M"
}
});
scheduler.config.lightbox.sections = [
{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(<?php echo date("Y"); ?>, <?php echo date("n") - 1; ?>, <?php echo date("j"); ?>),"timeline");
scheduler.parse(<?php echo json_encode($scheduler); ?>, "json");
</script>
但是当我再次调用同一个块时,x 轴标题的高度加倍。然后我再次打电话,它使最后一个双数加倍..
知道我做错了什么吗?