Skip to content

md-sidenav: fullscreen doesn't respect md-content #606

@Mario-Eis

Description

@Mario-Eis

Bug, feature request, or proposal:

Possibly a bug

What is the expected behavior?

Given is

<md-sidenav-layout fullscreen>
...
</md-sidenav-layout>

In DOM the content is wrapped in md-content. I would expect md-content to be fullscreen as md-sidenav-layout, md-sidenav and the backdrop are.

What is the current behavior?

md-sidenav uses the full hight because of

    position: fixed;
    top: 0;
    bottom: 0;

md-content only respects the width

    margin-left: 0px;
    margin-right: 0px;

What are the steps to reproduce?

http://plnkr.co/edit/NjimGzKqXw6bKJjk8Pyg?p=preview

What is the use-case or motivation for changing an existing behavior?

To have control over the vertical overflow in the sidenav content.
To realize scrollable content that consumes the full height.

Which versions of Angular, Material, OS, browsers are affected?

alpha.5

Is there anything else we should know?

This is possibly a duplicate of (or at least related to) #487
I created a new issue as the use-case and targeted feature (fullscreen attribute vs. styling the height) are different. Although i think the solution could look quiet the same.
I also only found some very "hacky" ways to get the md-content becoming fullscreen. Like !important on:host md-content to ignore proper view encapsulation or using global css (also ignoring view encapsulation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions