Scheduler - Responsive Behavior

Reference for scroll owners, minimum widths, auto-height, and grouped layout behavior.

#Import

import { Scheduler } from '@primeui/vue-scheduler';

#Layout Rules

SurfaceResponsive behaviorPrimary controls
MonthKeeps seven columns and uses overflow for dense daysmaxEventsVisible, showMorePopover
Day and weekScroll vertically for long time ranges and horizontally when grouped columns need widthheight, slotMinTime, slotMaxTime, resource grouping
Working daysUses the configured daysOfWeek set before width is calculateddaysOfWeek, showBusinessHours
TimelineOwns horizontal scrolling for the time axistimelineSlotWidth, timelineSlotDuration, timelineVirtualScroll
Resource timelineKeeps the resource rail aligned with timeline lanesresourceAreaWidth, rowAutoHeight, resource expansion
AgendaUses normal document flow and narrows naturallyagendaDays, agenda event UI

#Scroll Ownership

Let Scheduler own the scroll containers that participate in drag, resize, keyboard movement, and overlay placement. Wrap the scheduler in a panel if needed, but avoid adding an extra horizontal scroller around Scheduler.Content.

NeedPrefer
Fixed application panelSet height on Scheduler.Root or the containing demo frame
Wide week or grouped columnsAllow Scheduler content to scroll horizontally
Long timeline rangeUse timeline virtualization and tune slot width
Sticky resource labelsUse resource timeline instead of external sticky wrappers

Avoid nested horizontal scrollbars around the Scheduler body. If a documentation panel, card, or app shell already scrolls horizontally, let Scheduler own the inner time-axis scroll and keep the outer wrapper width-constrained.

#Column Widths

Day and week columns keep a minimum usable width. Resource grouping multiplies the number of columns, so a grouped week can become wider than the viewport by design. That horizontal scroll is expected and keeps event cards readable.

PatternGuidance
Simple weekKeep slotDuration and snapDuration readable before reducing density
Horizontal resourcesTune horizontalResourceDayMinWidth before compressing event cards
Date groupingTune horizontalResourceDayMinWidth and horizontalResourceMinColumnWidth so resource columns stay readable
Month overflowUse the more popover instead of shrinking cards below readable size

#Timeline

Timeline and resource timeline depend on timelineSlotWidth. Smaller values show more time at once but leave less room for labels and drag handles. Larger values improve readability but require more scrolling.

Use timelineVirtualScroll="auto" for long ranges or large resource sets. Keep rowAutoHeight on only when event stacks need natural row growth.

#Height

Set height when the Scheduler lives in a fixed application panel. Use autoHeight when the schedule should grow with its content and the page owns vertical scrolling.

SituationPrefer
Dashboard or split panelFixed height on Scheduler.Root
Documentation exampleA frame height that leaves room for events
Resource timeline stacksrowAutoHeight only when rows need to grow
Page-length agendaNatural document flow

#Mobile Guidance

Use agenda, day, or month as the primary small-screen entry point. Week, horizontal resource, and timeline views are still useful on mobile when horizontal scrolling is expected and the workflow needs comparison.

Mobile taskSuggested view
Review upcoming itemsAgenda
Book or inspect one dayDay or resource day
Scan a monthMonth with more popover
Compare resources or long workTimeline or resource timeline with clear scroll affordance