Changeset - 982deaaef275
[Not reviewed]
default
0 1 0
Mads Kiilerich - 10 years ago 2015-08-11 12:39:07
madski@unity3d.com
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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/pullrequests/pullrequest_show.html
Show inline comments
 
@@ -171,7 +171,7 @@ ${self.repo_context_bar('showpullrequest
 
            <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>
0 comments (0 inline, 0 general)