Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

158
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda