search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

DayPilot Responsive

Asked by dave cohen
2 months ago.

Nice, easy to use package. I saw earlier question about making DayPilot responsive. I poked around in the code and found two lines where percentages are added as comments. I used the percentages instead, and it looks like everything is now responsive! The lines were:

this.div.style.width = this.width + 'px'; // '90%'

this.div.style.marginLeft = '-' + Math.floor(this.width / 2) + "px"; // '-45%'

So, I changed these to:

this.div.style.width = '90%';

this.div.style.marginLeft = '-45%';

And everything looks nice and responsive at first glance. What am I missing?

Comment posted by dave cohen
2 months ago.

This is for DayPilot modal dialogue.

New Reply
This reply is
Your name (optional):