Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BsDropdownModule viewport problem. #6674

Open
luizssouza opened this issue Jul 29, 2024 · 0 comments
Open

BsDropdownModule viewport problem. #6674

luizssouza opened this issue Jul 29, 2024 · 0 comments

Comments

@luizssouza
Copy link

luizssouza commented Jul 29, 2024

I am experiencing issues when using BsDropdown. When it expands near the edges of the browser, it ends up 'escaping' the viewport. Is there a parameter to make this adjustment automatically, or should this adjustment be done manually in the DOM?
Sem título

        <div class="col-md-1">
          <div class="btn-group btn-group-sm" dropdown [autoClose]="true" [insideClick]="true" [isAnimated]="true" container="body" matTooltip="Filters">
            <button id="button-nested" dropdownToggle type="button" class="btn btn-primary dropdown-toggle" aria-controls="dropdown-nested">
              <i class="fas fa-filter"></i> <span class="caret"></span>
            </button>
            <ul id="dropdown-nested" *dropdownMenu class="dropdown-menu" role="menu" aria-labelledby="button-nested">
              <li role="menuitem" dropdown [autoClose]="true" [insideClick]="true" [isAnimated]="true" [placement]="'right'" container="body">
                <a dropdownToggle class="dropdown-item dropdown-toggle" (click)="false">Order date<span class="caret"></span></a>
                <ul *dropdownMenu class="dropdown-menu" role="menu">
                  <li role="menuitem"><a class="dropdown-item" fragment="nested-dropdowns">Sort ascending</a></li>
                  <li role="menuitem"><a class="dropdown-item" fragment="nested-dropdowns">Sort descending</a></li>
                  <li role="menuitem"><a class="dropdown-item" fragment="nested-dropdowns">Between</a></li>
                </ul>
              </li>
              <li role="menuitem" dropdown [autoClose]="true" [insideClick]="true" [isAnimated]="true" [placement]="'right'" container="body">
                <a dropdownToggle class="dropdown-item dropdown-toggle" (click)="false">Expiration date<span class="caret"></span></a>
                <ul *dropdownMenu class="dropdown-menu" role="menu">
                  <li role="menuitem"><a class="dropdown-item" fragment="nested-dropdowns">Sort ascending</a></li>
                  <li role="menuitem"><a class="dropdown-item" fragment="nested-dropdowns">Sort descending</a></li>
                  <li role="menuitem"><a class="dropdown-item" fragment="nested-dropdowns">Between</a></li>
                </ul>
              </li>
              <li class="divider dropdown-divider"></li>
              <li role="menuitem"><a class="dropdown-item">Clear filters</a>
              </li>
            </ul>
          </div>
        </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant