-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print issue #8378
Comments
I'll answer this since I found the problem, it might help some people : in our app the problem came from our sidenav's css properties that set its height to |
As a side note and since this has been bumped in priorities I can suggest a fix that mirrors the one that was used in material1 :
|
Closing this and opening an issue at angular/material.angular.io#333 instead. The sidenav supports this, we just need to layout the docs site so that the body is the element that scrolls in print mode. |
Sorry, but I still have this problem in my application. I use the |
@twoheaded you can use |
@mmalerba I think this should be reopened as it affects all applications using the side nav. The material.angular.io website is just an example of the issue. For example see the print preview for this stackblitz (code) |
If you want print to work the document needs to be the element that scrolls. The sidenav does support this, it's similar to how you set it up to auto-hide the address bar on mobile. (See the "responsive sidenav" example here: https://material.angular.io/components/sidenav/overview) |
@aciccarello, thanks. I think too, that the issue closed prematurely. I really cited the material.angular.io page as an example, since I thought it was a common problem. |
Here is an example of a sidenav with working pint: https://stackblitz.com/edit/angular-wep1jg-mhqyzw?file=app/sidenav-responsive-example.html (slightly modified from docs site example) |
@mmalerba, in the example you use ccs property |
Ok, example from documentation. Printing doesn't work. The issue is closed. Nice |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
An application with a large amount of content should be printed on multiple sheets
What is the current behavior?
Only first sheet is printed. Remaining content is cropped
What are the steps to reproduce?
Open Material site and press
Ctrl+P
or try to print the main page from browser menu. There is only one page in the previewWhich versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.0.0, Material rc0, Win10, TS 2.4.2, Chrome latest
The text was updated successfully, but these errors were encountered: