Giter Site home page Giter Site logo

Comments (1)

CWSpear avatar CWSpear commented on September 12, 2024

It is made to not take up any height, so I think you have conflicting styles.

The reason it has to remain is because it is testing the size of the screen if it resizes. It constantly needs to be testing against that div. In Bootstrap 2, the responsive code was separate from the main CSS.

However, in Bootstrap 3, it is always responsive, and some other changes occurred, so this is no long necessary. The latest script in this repo removes that stuff altogether.

Cameron

On Sep 3, 2013, at 1:14 PM, duggj [email protected] wrote:

The span you add to test for Responsive CSS, 'cwspear-is-awesome', is being added to the DOM and never getting removed. This gives 11px (height) of whitespace at the bottom of the page. Why can't it be removed after the test? Here's how I changed it on my local, which appears to work:

(function($, window, undefined) {
// pure win here: we create these spans so we can test if we have the responsive css loaded
// this is my attempt to hopefully make sure the IDs are unique
var canHover = false;
$('.').appendTo('body');
canHover = $('#cwspear-is-awesome').is(':visible');
$('#cwspear-is-awesome').remove();
var shouldHover = function() {
return canHover;
};

Let me know if you see any issues with just adding it, testing it, and removing it.

Thanks.


Reply to this email directly or view it on GitHub.

from bootstrap-hover-dropdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.