-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
clients(devtools): unset overflow in print #9274
Conversation
@@ -263,6 +263,11 @@ | |||
overflow-y: scroll; | |||
height: calc(100% - var(--topbar-height)); | |||
} | |||
@media print { | |||
.lh-devtools .lh-container { | |||
height: inherit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i tried this out and i'm not sure it fixes the issue.
rather than height, i'm pretty sure we need to unset the overflow
property back to 'visible' instead.
@media print {
.lh-devtools .lh-container {
overflow-y: unset;
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worked for me
Try it out in this manner:
comment out the "printWindow.close()" fn, cancel the print prompt when it appears, and inspect the print window / apply these styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was only barely working :)
fixed
https://chromium-review.googlesource.com/c/chromium/src/+/1651062/14/third_party/blink/renderer/devtools/front_end/audits/AuditsReportRenderer.js#b34