Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
DateRangePicker not using full page for width

The issue I had initially was the daterangepicker scrolling with the page. I have added a parentEl which is the square div element with selector $('#daterange').parent().parent() (with text "Select Range 5 days") which fixed the scrolling issue.

Now the size of the daterangepicker is limited to the width of that parentEl as you can see in the photo.

How do I fix the scrolling issue and keep the width of the daterangepicker working properly too?

package used: https://www.daterangepicker.com/#example1

$('#daterange').daterangepicker({
        parentEl: $('#daterange').parent().parent(),
        autoApply: true,
        maxDate: end,
        minDate: moment().subtract(dayRangeMax, 'days'),
        startDate: start,
        endDate: end,
        opens: 'left',

Current Result Current Result

Expected result Expected Result

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!