[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Tue Sep 15 06:34:14 PDT 2015
loleaflet/src/control/Control.Fonts.js | 2 ++
loleaflet/src/control/Control.Styles.js | 1 +
2 files changed, 3 insertions(+)
New commits:
commit cd648ed1195811db62f67e02636aa2739effced6
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Tue Sep 15 16:33:48 2015 +0300
loleaflet: refocus document after changing styles/fonts
diff --git a/loleaflet/src/control/Control.Fonts.js b/loleaflet/src/control/Control.Fonts.js
index 8a5201e..4695011 100644
--- a/loleaflet/src/control/Control.Fonts.js
+++ b/loleaflet/src/control/Control.Fonts.js
@@ -65,6 +65,7 @@ L.Control.Fonts = L.Control.extend({
}
this._updateSizeList(font);
this._map.applyFont(font);
+ this._refocusOnMap();
},
_onChangeSize: function (e) {
@@ -73,6 +74,7 @@ L.Control.Fonts = L.Control.extend({
return;
}
this._map.applyFontSize(size);
+ this._refocusOnMap();
},
_updateSizeList: function (font) {
diff --git a/loleaflet/src/control/Control.Styles.js b/loleaflet/src/control/Control.Styles.js
index b95f25c..fc2bc8b 100644
--- a/loleaflet/src/control/Control.Styles.js
+++ b/loleaflet/src/control/Control.Styles.js
@@ -65,6 +65,7 @@ L.Control.Styles = L.Control.extend({
else if (this._map.getDocType() === 'presentation') {
this._map.applyStyle(style, 'Default');
}
+ this._refocusOnMap();
},
_onStateChange: function (e) {
More information about the Libreoffice-commits
mailing list