Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dayStartTime displays incorrect if minutes used #5225

Open
chuckn0rris opened this issue Sep 13, 2022 · 0 comments
Open

dayStartTime displays incorrect if minutes used #5225

chuckn0rris opened this issue Sep 13, 2022 · 0 comments
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer

Comments

@chuckn0rris
Copy link

Forum post
Try in console

calendar.modes.weekResources.view.dayStartTime = '06:10'

Timeline starts from ~05:50, and not 06:10

Test case

const calendar = new Calendar({
    // Start life looking at this date
    date : new Date(2020, 9, 12),

// CrudManager arranges loading and syncing of data in JSON form from/to a web service
crudManager : {
    transport : {
        load : {
            url : 'data/data.json'
        }
    },
    autoLoad : true
},

appendTo : 'container',

// Features named by the properties are included.
// An object is used to configure the feature.
features : {
    eventTooltip : {
        // Configuration options are passed on to the tooltip instance
        // We want the tooltip's left edge aligned to the right edge of the event if possible.
        align : 'l-r'
    }
},
modes: {
  week: null,
  day: null,
  month: null,
  year: null,
  agenda: null,
  weekResources: {
    type: 'resource',
    title: 'Week',
    view: {
      type: 'week',
      weekStartDay: null,
      dayStartShift: 0,
      dayStartTime: 6,
      dayEndTime: 6,
      visibleStartTime: 0,
      showAllDayHeader: false,
      //eventRenderer: eventRenderer.bind(null, CalendarViewMode.WEEK),
      //dayHeaderRenderer
    }
  },
  dayResources: {
    type: 'resource',
    title: 'Day',
    view: {
      type: 'day',
      dayStartShift: 6,
      dayStartTime: 6,
      dayEndTime: 6,
      visibleStartTime: 6,
      showAllDayHeader: false,
      //eventRenderer: eventRenderer.bind(null, CalendarViewMode.DAY),
      //dayHeaderRenderer
    }
  }
}

});
@chuckn0rris chuckn0rris added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Sep 13, 2022
@isglass isglass added this to the 5.2.x milestone Sep 13, 2022
@isglass isglass removed this from the 5.2.x milestone Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer
Projects
None yet
Development

No branches or pull requests

2 participants