Giter Club home page Giter Club logo

Comments (2)

scotte avatar scotte commented on June 12, 2024

I think the problem is at a width of 768 pixels - maybe my tablet has some scaling for web pages. Here's part of the problem at https://github.com/jeblister/kube/blob/master/static/js/kube.js#L396

    	isMobileScreen: function()
    	{
    		return ($(window).width() <= 768);
    	},
    	isTabletScreen: function()
    	{
    		return ($(window).width() >= 768 && $(window).width() <= 1024);
        },

Note comparisons for <= 768 and >=768, the second expression should be >768 as none of the code blocks match at exactly 768 pixels.

I'm not sure if this is the final fix - I modified kube.js (and moved kube.min.js out of the way) but the issue is not resolved, so perhaps there's another code block somewhere with this same bad logic. Still debugging that bit and I'll get a pull request out if this problem is entirely within this repo.

from kube.

scotte avatar scotte commented on June 12, 2024

OK, I've got it fixed. pull request inbound...

from kube.

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.