Coder Social home page Coder Social logo

Comments (6)

jasonkuhrt avatar jasonkuhrt commented on June 22, 2024

Has anyone observed this exact same layout quirk?

from engine.

jiko avatar jiko commented on June 22, 2024

I tried this in Chrome and observed the same.

from engine.

d4tocchini avatar d4tocchini commented on June 22, 2024

Here's a JSFiddle of your example, it works there as it should.

Looks like it could be the

html:not(.gss-ready){ display: none; }

display:none kills measurement information so when GSS tries to measure the height of the button it gets 0, when the screen is resized measurements are valid and the button moves up by about half its height . Try opacity:0

from engine.

d4tocchini avatar d4tocchini commented on June 22, 2024

Whoops, use this JSFiddle link:

http://jsfiddle.net/v7u6N/7/

from engine.

jasonkuhrt avatar jasonkuhrt commented on June 22, 2024

@d4tocchini Ok, I updated the example at http://jasonkuhrt.github.io/sandbox/ and indeed it works fine if using the opacity: 0; technique.

Is this considered a valid gotchya (that just needs to be noted in a GSS guide) or should this be considered a bug?

from engine.

d4tocchini avatar d4tocchini commented on June 22, 2024

Unfortunately there's no way around this without completely ditching the DOM, so it's Gotcha not a bug.

Planning on adding a Gotcha section to the site...

from engine.

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.