expands gantt to the full screen mode
gantt.expand();
This method is defined in the fullscreen extension, so you need to activate the fullscreen plugin using the gantt.plugins method. Read the details in the Full Screen Mode article.