Skip to content

Partial prints from fullscreen sidenavs #1520

Closed

Description

@nkholski

Bug, feature request, or proposal:

Bug: Only visible the visible part of the page is printed (as in ctrl+p) when the content is in a sidenav with a fullscreen attribute (<md-sidenav-layout fullscreen>)

What is the expected behavior?

To be able to print the complete contents regardless of "fullscreen" property (To get the same result with <md-sidenav-layout fullscreen>as with <md-sidenav-layout>).

What is the current behavior?

One page is printed, only the content visible on screen.

What are the steps to reproduce?

http://plnkr.co/edit/lYPHtQjmaLDrCkmRC6J2

  1. Open in separate window and press "ctrl+p" => Only one page.
  2. Remove "fullscreen" in <md-sidenav-layout fullscreen> in app.component.html, press "ctrl+p" => All content on multiple pages

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

I want to print it ALL :-)

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

Tested with Angular 2.1.0, material2 alpha-9.3, Chrome 52.0.2743.116, Ubuntu 16.04

Is there anything else we should know?

Having a great time developing with Angular 2 / Material 2.

Activity

  1. RoxKilly commented on Oct 18, 2016

    @RoxKilly

    @nkholski is the fullscreen attribute specific to Material? I'd like to learn about it, but there is no reference to it in the sidenav docs.

  2. added
    P3
    on Oct 18, 2016
  3. jelbourn commented on Oct 18, 2016

    @jelbourn
    Contributor

    We're considering replacing the fullscreenattribute with something else.

  4. nkholski commented on Oct 19, 2016

    @nkholski
    Author

    @RoxKilly Someone correct me if I'm wrong but I think it's a custom attribute and not a a part of the HTML-standard.

  5. matt1 commented on Dec 20, 2016

    @matt1

    Same issue for me - it was only printing the "viewable" region. Some fiddling around led me to this work-around that you can add to your CSS:

    @media print {
      .md-sidenav-content {
        height: initial !important;
      }
    }

    Bit hacky but seems to allow for normal printing while a proper fix is sorted.

  6. assigned and unassigned on Apr 9, 2017
  7. jelbourn commented on Apr 9, 2017

    @jelbourn
    Contributor

    @mmalerba is this still a thing?

  8. mmalerba commented on Apr 10, 2017

    @mmalerba
    Contributor

    fullscreen attribute is gone now, https://material.angular.io/components/component/sidenav shows recommended approach for fullscreen sidenav

  9. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  10. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions