Hello team, I hope this message finds you well.
We have found a number of issues with the mobile version of the scheduler, and we'd like to disable it altogether. The desktop version works for us in all resolutions and device types.
We've tried setting isResponsive/isAdaptive properties, which didn't result in any changes. How can we disable this behavior of the scheduler?
<meta name="viewport" content="width=1440, initial-scale=1" /> |
Hi Praveenkumar!
Thanks for the quick reply, unfortunately this solution is not applicable to my end because it messes up with the layout for the other items of the page.
The reason that I'm trying to disable the responsive behavior is because of a layout bug when picking a time on the popup, if we fix this issue we can still display the mobile version, I'm attaching a screenshot straight from the examples of the library. https://ej2.syncfusion.com/angular/demos/?_ga=2.2762036.566184882.1638361091-122944237.1628687788#/material/schedule/overview
The problem is that the "e-datetimepicker" div opens on the same position of the screen for start and end time, and it is not aligned with the respective input.
Thank you in advance.
onPopupOpen(args) {
if (args.type === 'Editor') {
if(this.scheduleObj.isAdaptive){
var startPicker = (
document.querySelector('.e-start.e-datetimepicker') as any
).ej2_instances[0];
startPicker.open = () => {
if(document.querySelector('.e-datetimepicker.e-popup')){
(document.querySelector('.e-datetimepicker.e-popup').ej2_instances[0] as any).relateTo = '.e-start';
(document.querySelector('.e-datetimepicker.e-popup').ej2_instances[0] as any).position.Y = 'Bottom';
}
};
var endPicker = (
document.querySelector('.e-end.e-datetimepicker') as any
).ej2_instances[0];
endPicker.open = () => {
if(document.querySelector('.e-datetimepicker.e-popup')){
(document.querySelector('.e-datetimepicker.e-popup').ej2_instances[0] as any).relateTo = '.e-end';
(document.querySelector('.e-datetimepicker.e-popup').ej2_instances[0] as any).position.Y = 'Bottom';
}
};
} |
Hi Praveenkumar
Thanks for the reply, the snippet that you provided worked, thank you!
Hi Rodrigo,
You are most welcome😊
Regards,
Vengatesh