changeset 5386:982deaaef275

pullrequests: avoid unnecessary scroll-bar on short lists of available updates with Chrome The surrounding div will apparently take size after the content but miss that there also is 1 pixel border ... and when drawing it realizes that there isn't enough space and it adds scroll bars anyway. Work around that by giving the surrounding box 1 pixel padding.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 11 Aug 2015 12:39:07 +0200
parents b8734b428786
children 2fa786ba2b2a
files kallithea/templates/pullrequests/pullrequest_show.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_show.html	Tue Aug 11 12:39:07 2015 +0200
+++ b/kallithea/templates/pullrequests/pullrequest_show.html	Tue Aug 11 12:39:07 2015 +0200
@@ -171,7 +171,7 @@
             <div class="input">
               <div class="msg-div">${c.update_msg}</div>
               %if c.avail_revs:
-              <div id="updaterevs" style="max-height:200px; overflow-y:auto; overflow-x:hidden; margin-bottom: 10px">
+              <div id="updaterevs" style="max-height:200px; overflow-y:auto; overflow-x:hidden; margin-bottom: 10px; padding: 1px 0">
                 <div style="height:0">
                   <canvas id="avail_graph_canvas" style="width:0"></canvas>
                 </div>