Giter Club home page Giter Club logo

Comments (12)

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024 1

Good catch!
I actually updated the percents to avoid this issue... no idea.
I guess I could throw a calc in there instead? 😕

from flexboxgrid.

benschwarz avatar benschwarz commented on August 24, 2024

Suspect what we have here is a rounding issue.

from flexboxgrid.

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024

Updated to use calc now.
@benschwarz Want to take a look and see if it's still borked? I don't have a machine with IE11 on it .
Wish I new some Microsoft folks to hook me up with one? I would make good use of it. ;)

from flexboxgrid.

benschwarz avatar benschwarz commented on August 24, 2024

screen shot 2014-04-11 at 4 39 37 pm

Hmm, not looking rad @kristoferjoseph
FYI, I've been using an IE11 vm from modern.ie

from flexboxgrid.

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024

No, that does not look rad at all. Wonder what gives. Thanks for the tip, will get it from modern.ie

from flexboxgrid.

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024

Figured it out. I need to use the newest version of Autoprefixer to get the correct flex-grow property for IE10+
Will make some PRs.

from flexboxgrid.

benschwarz avatar benschwarz commented on August 24, 2024

Oh. Rad!

from flexboxgrid.

skdenmark avatar skdenmark commented on August 24, 2024

Is the IE problem fixed?

from flexboxgrid.

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024

@skdenmark I have been working on this and have to say it's been a bitch to debug. Can't seem to track down wth IE is barfing on. I feel that I need to split up the flex properties instead of using the shorthand flex property in order to get to the bottom of it. Any help debugging is welcome. :)

from flexboxgrid.

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024

[UPDATE] It seems like box-sizing: border-box is not respected by display: flex elements. The padding is NOT supposed to add to the width of the element, but instead only act on the elements contents. in IE10+ this is not the case. Adding padding to an element causes rounding errors.

Open to suggestions as to how people want this fixed. I could remove the margin and padding that I am using for gutters or I can try and do some voodoo to compensate for the pixel rounding errors for IE only. Obviously the latter is very error prone.

Bummed since I thought we were past box-sizing issues on the web 👎

from flexboxgrid.

bostondv avatar bostondv commented on August 24, 2024

@kristoferjoseph I think I found a solution. Add a max-width with a percentage matching the flex-basis value. In my tests on IE 10 & 11, it fixes the box size problem when there is padding on the columns!

For example:

.column-1-hand {
  flex-basis: 8.333333333%;
  max-width: 8.333333333%;
}

from flexboxgrid.

kristoferjoseph avatar kristoferjoseph commented on August 24, 2024

Awesome!
I'll test it out some in my side as well, but this is great news and feels
like a perfect solution!

Thanks

On Monday, August 11, 2014, Boston Dell-Vandenberg [email protected]
wrote:

@kristoferjoseph https://github.com/kristoferjoseph I think I found a
solution. Add a max-width with a percentage matching the flex-basis
value. In my tests on IE 10 & 11, it fixes the box size problem when there
is padding on the columns!

For example:

.column-1-hand {
flex-basis: 8.333333333%;
max-width: 8.333333333%;
}


Reply to this email directly or view it on GitHub
#6 (comment)
.

Kristofer

from flexboxgrid.

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.