loleaflet/src/control/Ruler.js | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit e2e42914a4d026e0af1ec7ac0ba459e4d3048fa2 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Tue Dec 10 10:57:30 2019 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Tue Dec 10 10:57:30 2019 +0200 tdf#128468: Add a clarifying comment Change-Id: Ia69d3bf94750be07223c5de389167280745f021e diff --git a/loleaflet/src/control/Ruler.js b/loleaflet/src/control/Ruler.js index bebce5d7e..223f2824c 100644 --- a/loleaflet/src/control/Ruler.js +++ b/loleaflet/src/control/Ruler.js @@ -148,6 +148,9 @@ L.Control.Ruler = L.Control.extend({ for (var num = 0; num <= (this.options.pageWidth / 1000) + 1; num++) { var marker = L.DomUtil.create('div', 'loleaflet-ruler-maj', this._rBPContainer); + + // The - 1 is to compensate for the left and right .5px borders of + // loleaflet-ruler-maj in leaflet.css. marker.style.width = this.options.DraggableConvertRatio*1000 - 1 + 'px'; if (this.options.displayNumber) { if (numCounter !== 0) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits