]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixed top-bar padding bug
authorzurbchris <chris@zurb.com>
Fri, 15 Mar 2013 22:36:02 +0000 (15:36 -0700)
committerzurbchris <chris@zurb.com>
Fri, 15 Mar 2013 22:36:02 +0000 (15:36 -0700)
docs/components/section.html.erb
js/foundation/foundation.topbar.js

index 0d62155b65ae9fe4c14ce8e8c691c2d14c2328b7..5818c71e0a2f9d8770a8bb2af3ea4146a534e669 100644 (file)
@@ -65,7 +65,7 @@
                 </div>
               </section>
             </div>
-            <div class="section-container tabs" data-section data-options="deep_linking: true; force_tabs: true">
+            <div class="section-container tabs" data-section data-options="deep_linking: true; force_tabs: false">
               <section class="section">
                 <p class="title"><a href="#panel1">Section 1</a></p>
                 <div class="content" data-slug="panel1">
     </div>
   </section>
 </div>', :html %>
-        
+
         <h6>Tabs/Accordion</h6>
         <p>Adding a <code>tabs</code> class to the section container will enable tabs on large screens and show an accordion on small screens.</p>
 <%= code_example '
index 98ab12ef99b7d9f6daca4f3cfd7179eb47d3af58..1d8db3df6eff3d54489be5d20bc9ef2ae18283ac 100644 (file)
@@ -87,7 +87,7 @@
             topbar.parent().removeClass('fixed');
             $('body').css('padding-top','0');
             window.scrollTo(0);
-          } else {
+          } else if (topbar.hasClass('fixed expanded')) {
             topbar.parent().addClass('fixed');
             $('body').css('padding-top',offst);
           }