Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
app-root {
overflow: hidden;
}

.outer-wrapper {
height: 100%;
overflow: hidden;
display: flex;
flex-direction: row;
}
Comment on lines +1 to +7

.main {
flex: 1;
min-width: 0;
min-height: 0;
overflow: hidden;
}

.content {
width: 100%;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: stretch;
overflow: auto;

> *:not(router-outlet) {
padding: 0 24px;
}

p {
margin: 15px;
}
}

@media only screen and (max-width: 1024px) {
.content {
justify-content: flex-start;

> *:not(router-outlet) {
padding: 0 15px;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
</ng-template>
</igx-nav-drawer>
<div igxFlex igxLayout igxLayoutDir="columns">
<div class="main" igxFlex igxLayout igxLayoutDir="columns">
Comment on lines 1 to +10
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanvpetrov Can you check the directives are actually active?
igxLayout on the .outer-wrapper is supposed to place it in display: flex; IIRC.
Simlartly with igxFlex on the .main. I'm assuming it's just the imports are missing?

Might want to check out https://www.infragistics.com/products/ignite-ui-angular/angular/components/layout to see what those directives added, recreate that in CSS as a starting point and actually remove the directives if they won't be used anymore.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also not sure what scrolling issues there are, but you shouldn't have to spam that much overflow: hidden; (if at all) in a cleanly set up layout.

<igx-navbar title="<%=name%>" actionButtonIcon="menu" (action)="nav.toggle()"></igx-navbar>
<div class="content" igxFlex>
<router-outlet></router-outlet>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
app-root {
overflow: hidden;
}

.outer-wrapper {
height: 100%;
overflow: hidden;
display: flex;
flex-direction: row;
}

.main {
flex: 1;
min-width: 0;
min-height: 0;
overflow: hidden;
}

.content {
Expand Down
Loading