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;