Fossil

Check-in [c5f8e79990]
Login

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: c5f8e79990678c43234c8fdb82cb78e01fb9d8e9a1c008cf248a19571c98f64f
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
Unified Diff Ignore Whitespace Patch
Changes to src/diff.js.
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";
      }
    }
    setTimeout(checkWidth, 100)
  }
  checkWidth();

})();







<


>

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);
})();