Giter Club home page Giter Club logo

calc-polyfill's People

Contributors

rodebert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calc-polyfill's Issues

Is there a way to trigger this polyfill?

For instance, things like Isotope.js have relayout(). Does calc polyfill have anything like that?

I ask because it seems like when I trigger various viewport adjustments (open/close IE8 dev tools, shrink/expand the viewport) it seems to work better and better.

It'd be nice to add a timeout that triggered calc relayout. :D

Rerun after ajax content?

Hi,

I was just wondering if there was a way to get this script to run again after loading in new content that has a CSS width: calc applied to it? E.g. picturefill allows you do to this:

picturefill({ reevaluate: true });

At the end of the ajax function, which recalculates the correct images.

By the way, to get the script to work in IE8 for me I had to comment out the console.log messages, as I was getting a console undefined error. Thanks though, it's working well so far.

Thank you

This is the most underrated polyfill in existence. It's saved my ass so many times.

Thank you for doing an amazing job on it...

๐Ÿฐ ๐ŸŽ‰ โค๏ธ

Doesn't work on 4.1.1

I can't get a 4.0.3 vm to emulate, but on 4.1.1 it doesn't calc width: calc(100% / 3);

Bower version is broken

In calc.js on line 227 there is some weird invisible character after the 2nd pipe. Replace your line with this one (or just delete the spaces and double pipes and reinsert them).

                              .here
if ( stylesheets.length > 0 || cssTexts.length > 0 ) {

Here's a diff https://www.diffchecker.com/p8vajsw9

Once that problem is solved, a new error pops up: Uncaught ReferenceError: contentLoaded is not defined line: 503 (#24)

Media Queries - Lost grid

I know media queries don't work but in I8 I was trying out lost grid and got this polyfill working perfectly but If i add a media query with a lost-column/lost grid inside it just breaks the page and shows nothing at all in I8 all the elements disappear.

screen shot 2015-10-26 at 17 59 06

Above Works

Below would break it and show nothing

screen shot 2015-10-26 at 18 00 37

Is this expected? or is there a way to just show the original before the media query if i remove the query the content shows as expected is there a workaround? I'd be happy just to lock the grid at a fixed width for I8 and have the polyfill work

Thanks
Jake

Doesn't seem to work when nested

Haven't narrowed down this problem but calc() doesn't seem to work when it's nested.

Not sure if this is related but both calc()'s are using a decimal (99.99%).

NPM support

I want use this polyfill with like browserify.
But I can't found this on npm.

Can you register this to npm?

"contentLoaded is not defined" Error

I've got my script running after my CSS is pulled in, like it says to do in the documentation. However, I'm still getting this error:

contentLoaded is not defined
(anonymous function)    @   calc.js:511
(anonymous function)    @   calc.js:544

Invalid procedure call or argument

(I got the access denied figured out)

I'm getting an error "Invalid procedure call or argument" on line 252 char 7 (http://d.pr/i/lIc2). That's the line with querySelectorAll() on it, which I know you specify as a dependency in the Docs, but I have IE8 running in Standards Mode which is supposed to support the function and I'm still getting this error.

You can see this at http://railex.thesmackpack.com in IE8

IE8 error

I keep on getting this error in IE8:

The value of the property 'contentLoaded' is null or undefined, not a Function object

Is it something I am doing wrong in the set up?

Doesn't work on Android 4.2.2

I've tried to do a simple demo here and couldn't get it to work on Android 4.2.2:

I only got it to work on my laptop's Chrome browser using mobile emulation.

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.