I
I
ImagineWorld2020-08-13 11:08:09
css
ImagineWorld, 2020-08-13 11:08:09

The mobile menu does not scroll to the end, what is the reason?

There is an adaptive menu.
Here's how it looks at a small device height
5f34f38b9401d420224780.png And here's how it should.
5f34f50ae15e4868506503.png

However, when scrolling at a low height, it does not scroll to the end and the item "Vyhyu: od" is not visible how this can be fixed.

Here is the menu code:

<div class=barmenu>
        <div class=bar1>
        </div>
        <div class=bar2>
        </div>
        <div class=bar3>
        </div>
        <ul class=menu__box>
                <li>
                    <a class="menu__item main-page"> Главная</a>
                        <li>
                             <a class="menu__item session-reports-link" href=#>Отчёты по сессиям</a>
                              <li>
                                <a class="menu__item payments-reports">Отчёты по платежам</a>
                                  <li>
                                   <a class="menu__item cardpay">Пополнить</a>
                                      <li>
                                     <a class="menu__item creditpay">Кредит</a>
                                      <li>
                                      <a class="menu__item payments-methods">Способ оплаты</a>
                                        <li>
                                           <a class="menu__item recalculation">Перерасчет</a>
                                           <li>
                                               <a class="menu__item myprofile">Профиль</a>
                                              <li>
                                               <a class="menu__item ">Услуги</a>
                                                 <li>
                                                  <a class="menu__item tarif">Тарифы</a>
                                                  <li>
                                                   <a class=menu__item>Подключить друга</a>
                                                   <li>
                                                    <a class=menu__item>Оставить заявку</a>
                                                      <li>
                                                    <a class="menu__item iptv">IPTV</a>
                                                      <li>
                                                        <a class=menu__item>Видеопортал</a>
                                                         <li>
                                                          <a class="menu__item exit"> Выход</a>
                                                           <li>
                                                          </li>
                                                           </ul>
                                                 </div>


.barmenu {
  display: none;
  }
  .menu__box {
  display: block;
  position: fixed;
  visibility: hidden;
  overflow:auto;
  transition:0.7s;
  top: 50px;
  left: -100%;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 20px 0 20px 0;
  list-style: none;
  text-align: center;
  background-color: #ECEFF1;
  box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
  z-index:9999;
  }
  /* элементы меню */
  .menu__item {
  display: block;
  padding: 12px 24px;
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  }
  .menu__item:hover {
  cursor: pointer;
  background-color: #68ABE9;
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ImagineWorld, 2020-08-13
@ImagineWorld

Decided as follows: set height:auto for the menu; and bottom:0;
Xs that it gave, but helped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question