Closed happyvig closed 7 years ago
I don't know what you mean by "full screen". Are you perhaps referring to the 8px margin that browsers add by default to the document body?
I think he meant by full and half screen that height of app is not 100% and footer is not on the bottom. You need to get container to proper size if app content is not filling >= 100% of view. This is not a bug.
@aquinum6 : The height of the container is 100% already, set by default. I feel, its not needed to set to it manually. Any other suggestions to fix the issue ?
Can you share your CSS? Can you reproduce the issue in a plunker? What happens when you set the height of your <app>
and <dashboard>
elements to 100%?
@happyvig It looks like you're not using the fullscreen
attribute. The sidenav layout isn't fullscreen by default - you have to add it. Can you try it and report back?
@kara i think the real problem is.. when using fullscreen attribute and footer put inside 'md-sidenav-layout', then footer is not a sticky bottom even though using absolute position and bottom zero.
@mmalerba need discussion on the behavior of md-sidenav-layout
WRT taking up the whole screen
I would avoid the fullscreen attribute, we plan to remove it. Instead structure the DOM so that md-sidenav-layout naturally takes up the full screen (see example in #1966)
set app tag {display:block;}
.example-container { position: absolute; min-height: 100% !important;
}
add this class to md-sidenav-container will resolve the issue
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Bug, feature request, or proposal:
Bug :
I am using Angular Material 2 for my Angular 2 app. My dashboard page is not rendering full page in the browser. Attached is the screenshot of the above mentioned issue.
app.component.html
<router-outlet></router-outlet>
dashboard.component.html
dashboard.component.ts
Am I missing something here ?
Appreciate your help on this.
What is the expected behavior?
Full screen rendering
What is the current behavior?
Half screen rendering
Which versions of Angular, Material, OS, browsers are affected?
Chrome 51.0.2704.103 m (64-bit) Node 6.x Angular 2.0.0-rc.1 Angular Material 2 - 2.0.0-alpha.5