question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ion-grid doesn't render correctly in ion-item

See original GitHub issue

Bug Report

Ionic version:

[x] 4.x RC1

Current behavior: ion-grid doesn’t render grid layout - all columns are centered

wrongbehaviour

Expected behavior: ion-grid must have same behavior inside ion-item as normally/without

our business app v3 example ionic3-grid-inside-item2

Steps to reproduce:

  1. create ionic4 rc1 project
  2. add bellow code
  3. see result

Related code:

    <ion-item > 
        <ion-grid >
            <ion-row >
              <ion-col>
                <div>
                  1 of 2
                </div>
              </ion-col>
              <ion-col>
                <div>
                  2 of 2
                </div>
              </ion-col>
            </ion-row>
            <ion-row>
              <ion-col>
                <div>
                  1 of 3
                </div>
              </ion-col>
              <ion-col>
                <div>
                  2 of 3
                </div>
              </ion-col>
              <ion-col>
                <div>
                  3 of 3
                </div>
              </ion-col>
            </ion-row>
          </ion-grid>
      </ion-item>

Other information:

this is important to create complex business applications with many informations - in master detail mode - eg. inventory countlist and their lines. (product code, name, qty, location…etc.) grid allow organise it in v3 well.

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.7.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-rc.1
   @angular-devkit/build-angular : 0.11.4
   @angular-devkit/schematics    : 7.1.4
   @angular/cli                  : 7.1.4
   @ionic/angular-toolkit        : 1.2.2

System:

   NodeJS : v10.13.0 (/usr/local/bin/node)
   npm    : 6.5.0
   OS     : macOS [Mojave]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brandyscarneycommented, Jan 25, 2019

@trazek Awesome, thank you! I will take a look!

1reaction
trazekcommented, Jan 25, 2019

@brandyscarney I checked the visual tests in core and didn’t see any negative impact of adding this style.

https://github.com/ionic-team/ionic/pull/17258

Read more comments on GitHub >

github_iconTop Results From Across the Web

ion-grid doesn't render correctly in ion-item #17075 - GitHub
Bug Report. Ionic version: [x] 4.x RC1. Current behavior: ion-grid doesn't render grid layout - all columns are centered.
Read more >
Confused about ion-item usage - Ionic Forum
Those links are pointing to ionic 1.x, tried putting ion-list and ​ion-grid​ inside ion-item and they are not rendering properly.
Read more >
Ionic app style not rendering properly - css - Stack Overflow
What I think is, on the first render for the ion-navbar; it is getting a child div element with class. toolbar-background-md. which has...
Read more >
Ionic Responsive Design and Navigation for All Screens
For the dropdown we use some fixed values to position it correctly, and we also applied a hover to the items within the...
Read more >
Ionic project not rendering in chrome properly - Reddit
Hi, I've just started learning Ionic framework with angular. I created ionic project in CLI and when the app starts in the live...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found