longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Response problem size change.How to judge a singleMonth or doubleMonth when the user clicks? #383

Open bruce-zhang932 opened 6 years ago

bruce-zhang932 commented 6 years ago

Hello! My project is a response project. When I was in the browser from the big screen to the mobile phone screen size, click is still doubleMonth. How to determine the doubleMonth or singleMonth show when the user clicks?

holtkamp commented 6 years ago

With "response" you probably mean "responsive"?

Maybe you can use the width of the screen to determine which configuration to use?

http://api.jquery.com/width/

https://stackoverflow.com/questions/7715124/do-something-if-screen-width-is-less-than-960-px