loleaflet/src/layer/marker/Annotation.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit 92d4ec64c36b3fbf5850711afcf2702b85224734 Author: Henry Castro <hcas...@collabora.com> Date: Mon Mar 13 20:53:50 2017 -0400 loleaflet: fix the image author size of the annotation object Change-Id: Ife0c6d497dd0a201b10a2f7e8729ae8cb2a22627 diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js index 4482837..277a1d9 100644 --- a/loleaflet/src/layer/marker/Annotation.js +++ b/loleaflet/src/layer/marker/Annotation.js @@ -4,8 +4,9 @@ L.Annotation = L.Layer.extend({ options: { - minWidth: 240, - maxHeight: 50 + minWidth: 160, + maxHeight: 50, + imgSize: L.point([32, 32]) }, initialize: function (latlng, data, options) { @@ -93,7 +94,9 @@ L.Annotation = L.Layer.extend({ var tdAuthor = L.DomUtil.create('td', 'loleaflet-annotation-author', tr); var tdMenu = L.DomUtil.create('td', '', tr); var imgAuthor = L.DomUtil.create('img', '', tdImg); - imgAuthor.src = L.Icon.Default.imagePath + '/user.png'; + imgAuthor.setAttribute('src', L.Icon.Default.imagePath + '/user.png'); + imgAuthor.setAttribute('width', this.options.imgSize.x); + imgAuthor.setAttribute('height', this.options.imgSize.y); L.DomUtil.create('div', 'loleaflet-annotation-userline', tdImg); this._contentAuthor = L.DomUtil.create('div', 'loleaflet-annotation-content-author', tdAuthor); this._contentDate = L.DomUtil.create('div', 'loleaflet-annotation-date', tdAuthor); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits