MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / setExportSizes

Function setExportSizes

codebase/sources/dhtmlxscheduler.es.js:21612–21622  ·  view source on GitHub ↗
(size, initialSizes)

Source from the content-addressed store, hash-verified

21610 return { nav_height: scheduler3.xy.nav_height, scroll_width: scheduler3.xy.scroll_width, style_width: scheduler3._obj.style.width, style_height: scheduler3._obj.style.height, timeline_scrollable: scrollable, timeline_smart_rendering: smartRendering };
21611 }
21612 function setExportSizes(size, initialSizes) {
21613 scheduler3._obj.style.width = size.x + "px";
21614 scheduler3._obj.style.height = size.y + "px";
21615 scheduler3.xy.nav_height = 0;
21616 scheduler3.xy.scroll_width = 0;
21617 var timeline = getTimeline();
21618 if (initialSizes.timeline_scrollable || initialSizes.timeline_smart_rendering) {
21619 timeline.scrollable = false;
21620 timeline.smart_rendering = false;
21621 }
21622 }
21623 function setInitialSizes(initialSizes) {
21624 scheduler3.xy.scroll_width = initialSizes.scroll_width;
21625 scheduler3.xy.nav_height = initialSizes.nav_height;

Callers 1

add_export_methodsFunction · 0.70

Calls 1

getTimelineFunction · 0.70

Tested by

no test coverage detected