Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #3614
Closed
Open
Issue created May 27, 2012 by Administrator@rootContributor

dropdown-menu button's menu renders outside browser window

Created by: inactivist

I'm relatively new to Twitter BS and encountered an odd effect with dropdown buttons. The popup menu renders outside the window/viewport, clipping the popup (and thus rendering it pretty much unusable.) The appearance is very similar to the one described in issue #3107 (closed).

JSFiddle example - screen shot:

Screen shot

Consider the following (admittedly unusual) floating div structure:

<div class="pull-left">
    <div class="pull-right">
        <div class="btn-group">                 
                <a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
                    <span>Actions</span>
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="#">Item 1</a></li>
                    <li><a href="#">Item 2</a></li>
                    <li><a href="#">Item 3</a></li>
                    <li class="divider"></li>
                    <li><a href="#">Item 4</a></li>
                    <li><a href="#">Item 5</a></li>
                </ul>
            </div>
    </div>
</div>

Patient: "Doctor, it only hurts when I laugh." Doctor: "Then don't laugh."

I'll admit that I might want to avoid the nested pull-right / pull-left structure, but... is this reasonable behavior from Bootstrap?

I'm using Bootstrap v2.0.3.

Assignee
Assign to
Time tracking