初めて有効なデータで次を呼び出すと...すべてがうまくいき、テーブルは見栄えがします:
<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 軸の見出しの高さが 2 倍になります。もう一度呼び出すと、最後の倍数が2倍になります..
私が何を間違えたのか分かりますか?