longbill/jquery-date-range-picker

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

Opened this issue · 1 comments

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?

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