mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
Fix extra vertical scrollbar due to tab padding
This commit is contained in:
parent
e689d0c49d
commit
054ac0fa62
@ -733,13 +733,14 @@ export class et2_historylog extends et2_valueWidget implements et2_IDataProvider
|
||||
let tab = this.get_tab_info();
|
||||
if(this.dataview)
|
||||
{
|
||||
const style = getComputedStyle(tab.contentDiv);
|
||||
// -# to avoid scrollbars
|
||||
this.dataview.resize(
|
||||
Math.min(
|
||||
window.innerWidth - 15,
|
||||
parseInt(getComputedStyle(tab.contentDiv).width)
|
||||
parseInt(style.width)
|
||||
) - 5,
|
||||
parseInt(getComputedStyle(tab.contentDiv).height) - 5
|
||||
parseInt(style.height) - parseInt(style.paddingTop) - parseInt(style.paddingBottom) - 5
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user