Skip to content

Problem with flex grid system on iPhone 5s (iOS 9) #22223

Closed

Description

@fsasvari

The grid system is not working on both Google Chrome and Safari on iPhone 5s with iOS 9 installed.

We are using Bootstrap v4 alpha-6 SASS version with including only files we need. Website works on all other devices - Desktop, laptops, tablets (iPad and Android) and other mobile phones (Android, Windows Phone).

The problem is with grid system, it is displaying all col-* items in one row and website is more then 100% wide.

Any suggestions why this is happening ?

Activity

  1. mdo commented on Mar 20, 2017

    @mdo
    Member

    Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.


    This is a saved reply.

  2. added
    awaiting-replyWaiting on the author; an issue closes after 14 days without reply
    cssSass sources or compiled CSS
    on Mar 20, 2017
  3. mdo commented on Mar 26, 2017

    @mdo
    Member

    Closed for lack of update and live demo.

  4. adamcolpitts commented on Jul 19, 2018

    @adamcolpitts

    still a major problem

  5. mebibou commented on Nov 26, 2018

    @mebibou

    I just had the same issue and found this: https://github.com/philipwalton/flexbugs#flexbug-11
    I was using:

    <div class="row">
      <div class="col">
        <img style="width: 200px" >
      </div>
      <div class="col">
        <img style="width: 200px" >
      </div>
      <div class="col">
        <img style="width: 200px" >
      </div>
      <div class="col">
        <img style="width: 200px" >
      </div>
    </div>

    and thought the images would just go on the next line if couldn't fit on one line, but on Safari on an iPhone 5s it would just stay on a single line. Solution was to set:

    .row > .col {
      flex-basis: 200px;
    }
  6. Adeniran2020 commented on Jan 16, 2021

    @Adeniran2020

    I'm glad it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-replyWaiting on the author; an issue closes after 14 days without replycssSass sources or compiled CSS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions