Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Minor sbsdiff.js tweak to try to avoid unsightly page-level horizontal scrollbars, as reported in forum post 96e40f90db. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
fa667a9308726315401263e741ef0380 |
User & Date: | stephan 2021-08-29 12:58:19 |
Context
2021-08-31
| ||
02:56 | Fixed a copy/paste typo from [ae28ae82] which broke some JS-using pages. ... (check-in: b22bf1c9 user: stephan tags: trunk) | |
2021-08-30
| ||
22:39 | Merge fixed from trunk into the diff-color-enhancements branch. ... (check-in: 06a4494e user: drh tags: diff-color-enhancements) | |
16:43 | Added fossil.dom.ins/del() factory functions in prep for JS-based diff renderer. (Later) This check-in seems to break chat on the server-side. (Later still) fixed in trunk - copy/paste typo. ... (Closed-Leaf check-in: ae28ae82 user: stephan tags: oops) | |
2021-08-29
| ||
12:58 | Minor sbsdiff.js tweak to try to avoid unsightly page-level horizontal scrollbars, as reported in forum post 96e40f90db. ... (check-in: fa667a93 user: stephan tags: trunk) | |
2021-08-28
| ||
16:36 | Further improvements to fossil_temp_filename() to help ensure that the correct directory separators are used on both unix and windows. ... (check-in: 5434d2e3 user: drh tags: trunk) | |
Changes
Changes to src/sbsdiff.js.
︙ | ︙ | |||
49 50 51 52 53 54 55 | for(let i=0; i<allCols.length; i++){ allCols[i].style.width = w + "px"; allCols[i].style.maxWidth = w + "px"; } var allDiffs = document.getElementsByClassName('sbsdiffcols'); w = lastWidth; for(let i=0; i<allDiffs.length; i++){ | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | for(let i=0; i<allCols.length; i++){ allCols[i].style.width = w + "px"; allCols[i].style.maxWidth = w + "px"; } var allDiffs = document.getElementsByClassName('sbsdiffcols'); w = lastWidth; for(let i=0; i<allDiffs.length; i++){ allDiffs[i].style.width = '98%'; // setting to w causes unsightly horiz. scrollbar allDiffs[i].style.maxWidth = w + "px"; } } setTimeout(checkWidth, 100) } checkWidth(); })(); |