]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #11961: dropdown alignment docs improvements
authorMark Otto <otto@github.com>
Mon, 23 Dec 2013 06:07:01 +0000 (22:07 -0800)
committerMark Otto <otto@github.com>
Mon, 23 Dec 2013 06:07:01 +0000 (22:07 -0800)
components.html

index b511f46a0171804dc4c276593e27a6fde40832d2..3bdf2df79ee9d98ca1c01398fc25ed16067b2f03 100644 (file)
@@ -107,8 +107,12 @@ base_url: "../"
 </div>
 {% endhighlight %}
 
-    <h3 id="dropdowns-alignment">Alignment options</h3>
-    <p>Add <code>.dropdown-menu-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
+    <h3 id="dropdowns-alignment">Alignment</h3>
+    <p>By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add <code>.dropdown-menu-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
+    <div class="bs-callout bs-callout-warning">
+      <h4>May require additional positioning</h4>
+      <p>Dropdowns are automatically positioned via CSS within the normal flow of the document. This means dropdowns may be cropped by parents with certain <code>overflow</code> properties or appear out of bounds of the viewport. Address these issues on your own as they arise.</p>
+    </div>
     <div class="bs-callout bs-callout-warning">
       <h4>Deprecated <code>.pull-right</code> alignment</h4>
       <p>As of v3.1, we've deprecated <code>.pull-right</code> on dropdown menus. To right-align a menu, use <code>.dropdown-menu-right</code>. Right-aligned nav components in the navbar use a mixin version of this class to automatically align the menu. To override it, use <code>.dropdown-menu-left</code>.</p>