forked from extern/egroupware
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();
|
let tab = this.get_tab_info();
|
||||||
if(this.dataview)
|
if(this.dataview)
|
||||||
{
|
{
|
||||||
|
const style = getComputedStyle(tab.contentDiv);
|
||||||
// -# to avoid scrollbars
|
// -# to avoid scrollbars
|
||||||
this.dataview.resize(
|
this.dataview.resize(
|
||||||
Math.min(
|
Math.min(
|
||||||
window.innerWidth - 15,
|
window.innerWidth - 15,
|
||||||
parseInt(getComputedStyle(tab.contentDiv).width)
|
parseInt(style.width)
|
||||||
) - 5,
|
) - 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