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

DayPilot Responsive

Asked by dave cohen
5 years 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
5 years ago.

This is for DayPilot modal dialogue.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.