Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | diff.js: instead of polling for window size changes every 100ms, listen for window resize events. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
c5f8e79990678c43234c8fdb82cb78e0 |
| User & Date: | stephan 2021-09-07 21:55:25.389 |
Context
|
2021-09-07
| ||
| 22:24 | Made diff view table 100% wide instead of 98%. The unsightly horizontal scrollbars still don't appear at that width and this eliminates an odd-looking gap on the right. check-in: be9602d0df user: stephan tags: trunk | |
| 21:55 | diff.js: instead of polling for window size changes every 100ms, listen for window resize events. check-in: c5f8e79990 user: stephan tags: trunk | |
| 21:32 | Re-added the file-toggle checkboxes to the diff views which were disabled via recent refactoring. check-in: cf4b9fbd9c user: stephan tags: trunk | |
Changes
Changes to src/diff.js.
| ︙ | ︙ | |||
59 60 61 62 63 64 65 |
var allDiffs = document.querySelectorAll('table.diff');
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";
}
}
| < > | 59 60 61 62 63 64 65 66 67 68 69 |
var allDiffs = document.querySelectorAll('table.diff');
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";
}
}
}
checkWidth();
window.addEventListener('resize', checkWidth);
})();
|