I am loading the scheduler by parsing json data coming form the server, however I want to load it inside div container, I want to show page header and footer, how can I do that. Here is how I initialize it and load it
dhx.ready(function () {
dhx.ui.fullScreen();
dhx.ui({
view: “scheduler”,
id: “scheduler”
});
scheduler will be adjusted to screen size only if you are using automatic container definition (do not set “container” property). Otherwise, you will have to set container sizes manually.
I was able to set the height of the container using jQuery, it worked in portrait mode, however it got messy when changing the orientation to landscape mode, I tried to change the width on onorentationchange event but it didn’t seem to have an effect unless I change the scheduler div width, but doing so caused the scheduler to be messed up when changing to portrait mode again and also didn’t look right in month view.
Any work around I can use to make this works and looks right in both portrait and landscape mode?
Here is the script I used
function setPositions() {
var width = jQuery(window).width();
var height = jQuery(window).height();