Hi,
I have a simple splitter set up with two panes. Some navigation stuff in the left pane, and content on the right. The html is as follows:
<div id="koulutuspuuSplitter" style="height:500px;" >
<div id="koulutuspuu"></div>
<div id="koulutusPuuKomponentti"></div>
</div>
In document.ready I call
$("#koulutuspuuSplitter").kendoSplitter({
panes: [
{ collapsible: true, size: "350px" },
{ collapsible: true },
]
});
After which the contents of the left pane are loaded by ajax. The contents of the right pane are not loaded until an item is clicked in the left pane. So it is empty for now.
The problem: When the page loads, the splitter bar appears on the left edge (to the left of the "left pane"). The left pane is loaded just fine, with its own scrollbar and everything. But in place of the right pane is just empty space, and clicking on an item to load contents doesn't fill it (so the pane is not where its supposed to be). Doing any kind of resize event (resize browser window, open firebug panel, etc.) causes the splitter bar to "jump" from the left, to its proper position in between the panes. After this jump, the right pane contents also show up properly.
Presumably there is just something I am doing wrong. Perhaps wrong order of operations? Perhaps the problem is that the panes have no content when splitter is loaded? Something else?
I have a simple splitter set up with two panes. Some navigation stuff in the left pane, and content on the right. The html is as follows:
<div id="koulutuspuuSplitter" style="height:500px;" >
<div id="koulutuspuu"></div>
<div id="koulutusPuuKomponentti"></div>
</div>
In document.ready I call
$("#koulutuspuuSplitter").kendoSplitter({
panes: [
{ collapsible: true, size: "350px" },
{ collapsible: true },
]
});
After which the contents of the left pane are loaded by ajax. The contents of the right pane are not loaded until an item is clicked in the left pane. So it is empty for now.
The problem: When the page loads, the splitter bar appears on the left edge (to the left of the "left pane"). The left pane is loaded just fine, with its own scrollbar and everything. But in place of the right pane is just empty space, and clicking on an item to load contents doesn't fill it (so the pane is not where its supposed to be). Doing any kind of resize event (resize browser window, open firebug panel, etc.) causes the splitter bar to "jump" from the left, to its proper position in between the panes. After this jump, the right pane contents also show up properly.
Presumably there is just something I am doing wrong. Perhaps wrong order of operations? Perhaps the problem is that the panes have no content when splitter is loaded? Something else?