mobile view mode: Don't hide the content of the upper toolbar when read-only.
Change-Id: I7d3cf8f5f1946f05254cc22d7ea6fedfe872e225
This commit is contained in:
parent
499a488b5a
commit
da29205ea4
1 changed files with 12 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue