mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Do not run splitter resize control for mobile theme
This commit is contained in:
parent
3fbd2dcdc8
commit
c466a4e9ab
@ -253,33 +253,35 @@ app.classes.mail = AppJS.extend(
|
|||||||
// Show vacation notice on load for the current profile (if not called by mail_searchtype_change())
|
// Show vacation notice on load for the current profile (if not called by mail_searchtype_change())
|
||||||
var alreadyrefreshed = this.mail_searchtype_change();
|
var alreadyrefreshed = this.mail_searchtype_change();
|
||||||
if (!alreadyrefreshed) this.mail_callRefreshVacationNotice();
|
if (!alreadyrefreshed) this.mail_callRefreshVacationNotice();
|
||||||
|
if (!egwIsMobile())
|
||||||
let splitter = this.et2.getWidgetById('mailSplitter');
|
|
||||||
let composeBtn = this.et2.getWidgetById('button[mailcreate]');
|
|
||||||
let composeBtnLabel = composeBtn.label;
|
|
||||||
if (splitter && !splitter.vertical)
|
|
||||||
{
|
{
|
||||||
splitter.addEventListener('sl-reposition', function(){
|
let splitter = this.et2.getWidgetById('mailSplitter');
|
||||||
if (this.position < 44)
|
let composeBtn = this.et2.getWidgetById('button[mailcreate]');
|
||||||
{
|
let composeBtnLabel = composeBtn.label;
|
||||||
this.classList.add('limitted');
|
if (splitter && !splitter.vertical)
|
||||||
if (this.position < 30)
|
{
|
||||||
|
splitter.addEventListener('sl-reposition', function(){
|
||||||
|
if (this.position < 44)
|
||||||
{
|
{
|
||||||
this.classList.add('squeezed');
|
this.classList.add('limitted');
|
||||||
composeBtn.label = '';
|
if (this.position < 30)
|
||||||
|
{
|
||||||
|
this.classList.add('squeezed');
|
||||||
|
composeBtn.label = '';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.classList.remove('squeezed');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
this.classList.remove('limitted');
|
||||||
this.classList.remove('squeezed');
|
this.classList.remove('squeezed');
|
||||||
|
composeBtn.label = composeBtnLabel;
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
else
|
}
|
||||||
{
|
|
||||||
this.classList.remove('limitted');
|
|
||||||
this.classList.remove('squeezed');
|
|
||||||
composeBtn.label = composeBtnLabel;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'mail.display':
|
case 'mail.display':
|
||||||
|
Loading…
Reference in New Issue
Block a user