From 9df4cb37d405636ae68da832dd6eaa66afb950c2 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 2 Feb 2015 18:45:22 -0800 Subject: [PATCH] Fix printing with new scroll Summary: Fixes T7115, at least for me. Unclear if this is the "correct" fix. Test Plan: Try to print, get page. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7115 Differential Revision: https://secure.phabricator.com/D11636 --- resources/celerity/map.php | 6 +++--- .../rsrc/css/application/base/standard-page-view.css | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index d778fc6bc9..27cac7ea0a 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -7,7 +7,7 @@ */ return array( 'names' => array( - 'core.pkg.css' => '03040ee2', + 'core.pkg.css' => 'f31d8491', 'core.pkg.js' => '65e04767', 'darkconsole.pkg.js' => '8ab24e01', 'differential.pkg.css' => '8af45893', @@ -38,7 +38,7 @@ return array( 'rsrc/css/application/base/main-menu-view.css' => '7bb9c588', 'rsrc/css/application/base/notification-menu.css' => '6aa0a74b', 'rsrc/css/application/base/phabricator-application-launch-view.css' => '16ca323f', - 'rsrc/css/application/base/standard-page-view.css' => '8db344ee', + 'rsrc/css/application/base/standard-page-view.css' => '60d0df9a', 'rsrc/css/application/chatlog/chatlog.css' => '852140ff', 'rsrc/css/application/config/config-options.css' => '7fedf08b', 'rsrc/css/application/config/config-template.css' => '25d446d6', @@ -738,7 +738,7 @@ return array( 'phabricator-side-menu-view-css' => '7e8c6341', 'phabricator-slowvote-css' => '266df6a1', 'phabricator-source-code-view-css' => '7d346aa4', - 'phabricator-standard-page-view' => '8db344ee', + 'phabricator-standard-page-view' => '60d0df9a', 'phabricator-textareautils' => '5c93c52c', 'phabricator-title' => '5c1c758c', 'phabricator-tooltip' => '1d298e3a', diff --git a/webroot/rsrc/css/application/base/standard-page-view.css b/webroot/rsrc/css/application/base/standard-page-view.css index a9d7b5d688..bb85311427 100644 --- a/webroot/rsrc/css/application/base/standard-page-view.css +++ b/webroot/rsrc/css/application/base/standard-page-view.css @@ -150,6 +150,18 @@ a.handle-disabled { right: 0; } +/* Fixes so pages actually print when magic scrollbar is present */ +!print .main-page-frame { + position: static; + overflow: visible; +} + +!print .jx-scrollbar-viewport { + position: static; + width: auto !important; + height: auto !important; +} + .jx-scrollbar-test { position: absolute; left: -300px;