mobile view mode: Don't hide the content of the upper toolbar when read-only.

Change-Id: I7d3cf8f5f1946f05254cc22d7ea6fedfe872e225
This commit is contained in:
Jan Holesovsky 2018-11-30 15:24:29 +01:00
parent 499a488b5a
commit da29205ea4

View file

@ -129,11 +129,22 @@ L.Map = L.Evented.extend({
if (e.perm === 'readonly') {
L.DomUtil.addClass(this._container.parentElement, 'readonly');
L.DomUtil.addClass(L.DomUtil.get('toolbar-wrapper'), 'readonly');
if (!L.Browser.mobile) {
L.DomUtil.addClass(L.DomUtil.get('toolbar-wrapper'), 'readonly');
}
L.DomUtil.addClass(L.DomUtil.get('main-menu'), 'readonly');
L.DomUtil.addClass(L.DomUtil.get('presentation-controls-wrapper'), 'readonly');
L.DomUtil.addClass(L.DomUtil.get('spreadsheet-row-column-frame'), 'readonly');
}
else {
L.DomUtil.removeClass(this._container.parentElement, 'readonly');
if (!L.Browser.mobile) {
L.DomUtil.removeClass(L.DomUtil.get('toolbar-wrapper'), 'readonly');
}
L.DomUtil.removeClass(L.DomUtil.get('main-menu'), 'readonly');
L.DomUtil.removeClass(L.DomUtil.get('presentation-controls-wrapper'), 'readonly');
L.DomUtil.removeClass(L.DomUtil.get('spreadsheet-row-column-frame'), 'readonly');
}
}, this);
this.on('doclayerinit', function() {
if (!this.initComplete) {