mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
#rl-content to use flex for better layout control
This commit is contained in:
parent
cfcc8c73af
commit
8047a36b70
8 changed files with 42 additions and 70 deletions
|
|
@ -199,7 +199,7 @@ showMessageComposer = (params = []) =>
|
|||
setLayoutResizer = (source, target, sClientSideKeyName, mode) =>
|
||||
{
|
||||
if (source.layoutResizer && source.layoutResizer.mode != mode) {
|
||||
target.removeAttribute('style');
|
||||
target?.removeAttribute('style');
|
||||
source.removeAttribute('style');
|
||||
}
|
||||
source.observer?.disconnect();
|
||||
|
|
@ -210,10 +210,10 @@ setLayoutResizer = (source, target, sClientSideKeyName, mode) =>
|
|||
let value;
|
||||
if ('Width' == mode) {
|
||||
value = source.offsetWidth;
|
||||
target.style.left = value + 'px';
|
||||
target && (target.style.left = value + 'px');
|
||||
} else {
|
||||
value = source.offsetHeight;
|
||||
target.style.top = (4 + source.offsetTop + value) + 'px';
|
||||
target && (target.style.top = value + 'px');
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue