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
  • #1962
Closed
Open
Issue created Feb 13, 2012 by Administrator@rootContributor

Split button dropdown doesn't render right in btn-toolbar

Created by: maxbane

Here's a minimal example of a split button dropdown next to some other buttons in a btn-toolbar:

<html>
<head>
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css" />
<script type="text/javascript" src="../jquery/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<title>Hello</title>
</head>

<body>
    <div class="container">
    <h1>Hello</h2>

    <div class="btn-toolbar">
                <a href="#"
                    class="btn btn-info"><i class="icon-check icon-white"></i> Mark all read</a>
        <a href="#" class="btn btn-success">
            <i class="icon-eye-open icon-white"></i>
            Watch forum
        </a>

        <div class="btn-group">
            <a class="btn" href="#">RSS</a>
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
               <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
               <li>
                   <a href="#">RSS</a>
               </li>
               <li>
                   <a href="#">SMTP</a>
               </li>
               <li>
                   <a href="#">NNTP</a>
               </li>
            </ul>
        </div>
            </div>
    </div>
</body>
</html>

Put that at the top level of an extracted bootstrap.zip (and adjust the path to your jquery). Here's what I see in firefox: http://i42.tinypic.com/2i2sqw.png

Looks the same in Chrome. Clicking the dropdown caret displays the menu as expected, so the javascript is apparently working.

Either this layout is a bug, or I must be doing something wrong. If it's the latter, the documentation should be changed to make it clear what's wrong (unless I've done something really wrong :)).

Assignee
Assign to
Time tracking