From 87758e0c77ffea03ea7f3cdc143b46d3b0c27c3c Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 26 Jan 2015 17:23:10 -0800 Subject: [PATCH] set height: auto on #site for print avoids truncating printed output --- IPython/html/static/base/less/page.less | 4 ++++ IPython/html/static/style/style.min.css | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/IPython/html/static/base/less/page.less b/IPython/html/static/base/less/page.less index 73d85fdef..2b0dd58f5 100644 --- a/IPython/html/static/base/less/page.less +++ b/IPython/html/static/base/less/page.less @@ -89,6 +89,10 @@ body { display: none; .border-box-sizing(); overflow: auto; + @media print { + // force auto-height on print (overrides manual resizing in live view) + height: auto !important; + } } /* Smaller buttons */ diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 1cba27663..90127fd7d 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -8466,6 +8466,11 @@ body { -webkit-box-sizing: border-box; overflow: auto; } +@media print { + #site { + height: auto !important; + } +} /* Smaller buttons */ .ui-button .ui-button-text { padding: 0.2em 0.8em;