Fossil SCM
Minor sbsdiff.js tweak to try to avoid unsightly page-level horizontal scrollbars, as reported in [forum:96e40f90db | forum post 96e40f90db].
Commit
fa667a9308726315401263e741ef03800ce300d148444a4d6faa74a572bcc803
Parent
5434d2e32ce5f19…
1 file changed
+1
-1
+1
-1
| --- src/sbsdiff.js | ||
| +++ src/sbsdiff.js | ||
| @@ -51,11 +51,11 @@ | ||
| 51 | 51 | allCols[i].style.maxWidth = w + "px"; |
| 52 | 52 | } |
| 53 | 53 | var allDiffs = document.getElementsByClassName('sbsdiffcols'); |
| 54 | 54 | w = lastWidth; |
| 55 | 55 | for(let i=0; i<allDiffs.length; i++){ |
| 56 | - allDiffs[i].style.width = w + "px"; | |
| 56 | + allDiffs[i].style.width = '98%'; // setting to w causes unsightly horiz. scrollbar | |
| 57 | 57 | allDiffs[i].style.maxWidth = w + "px"; |
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | setTimeout(checkWidth, 100) |
| 61 | 61 | } |
| 62 | 62 |
| --- src/sbsdiff.js | |
| +++ src/sbsdiff.js | |
| @@ -51,11 +51,11 @@ | |
| 51 | allCols[i].style.maxWidth = w + "px"; |
| 52 | } |
| 53 | var allDiffs = document.getElementsByClassName('sbsdiffcols'); |
| 54 | w = lastWidth; |
| 55 | for(let i=0; i<allDiffs.length; i++){ |
| 56 | allDiffs[i].style.width = w + "px"; |
| 57 | allDiffs[i].style.maxWidth = w + "px"; |
| 58 | } |
| 59 | } |
| 60 | setTimeout(checkWidth, 100) |
| 61 | } |
| 62 |
| --- src/sbsdiff.js | |
| +++ src/sbsdiff.js | |
| @@ -51,11 +51,11 @@ | |
| 51 | allCols[i].style.maxWidth = w + "px"; |
| 52 | } |
| 53 | var allDiffs = document.getElementsByClassName('sbsdiffcols'); |
| 54 | w = lastWidth; |
| 55 | for(let i=0; i<allDiffs.length; i++){ |
| 56 | allDiffs[i].style.width = '98%'; // setting to w causes unsightly horiz. scrollbar |
| 57 | allDiffs[i].style.maxWidth = w + "px"; |
| 58 | } |
| 59 | } |
| 60 | setTimeout(checkWidth, 100) |
| 61 | } |
| 62 |