0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 13:12:40 +00:00

Remove line hiding toolbar in printCurrentBrew function

This commit is contained in:
Víctor Losada Hernández
2024-06-02 16:12:46 +02:00
parent 0c9958f461
commit c2170dd558

View File

@@ -22,7 +22,6 @@ const printCurrentBrew = ()=>{
window.frames['BrewRenderer'].contentWindow.print();
//Force DOM reflow; Print dialog causes a repaint, and @media print CSS somehow makes out-of-view pages disappear
const node = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('brewRenderer').item(0);
window.frames['BrewRenderer'].contentDocument.getElementsByClassName('toolBar').item(0).style.display='none';
node.offsetHeight; // accessing this is enough to trigger a reflow
node.style.display='';
}