Commit d35c5d90 authored by Pavel Feldman's avatar Pavel Feldman

Printing: URL in footer is not truncated to fit when printing.

Bug: 830526
Change-Id: I12665a63034f0a9ec5f628874b0af49194027668
Reviewed-on: https://chromium-review.googlesource.com/1006269Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550324}
parent 8ce216d3
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
padding-right: 0.7cm; padding-right: 0.7cm;
} }
.grow {
flex: auto;
}
.text { .text {
font-size: 8px; font-size: 8px;
overflow: hidden; overflow: hidden;
...@@ -70,8 +74,7 @@ function setup(options) { ...@@ -70,8 +74,7 @@ function setup(options) {
<div class='date text left'></div> <div class='date text left'></div>
<div class='title text center'></div>`; <div class='title text center'></div>`;
footer.innerHTML = options['footerTemplate'] || ` footer.innerHTML = options['footerTemplate'] || `
<div class='url text left'></div> <div class='url text left grow'></div>
<div class='center'></div>
<div class='text right'> <div class='text right'>
<span class='pageNumber'></span>/<span class='totalPages'></span> <span class='pageNumber'></span>/<span class='totalPages'></span>
</div>`; </div>`;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment