0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 20:22:42 +00:00

i fixed it wrong

This commit is contained in:
Víctor Losada Hernández
2024-06-01 00:37:49 +02:00
parent de8194d7e0
commit 1a52acd4a9

View File

@@ -23,7 +23,7 @@ const printCurrentBrew = ()=>{
//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);
node.style.display='none';
node.getElementsByClassName('toolBar').item(0).style.display='none';
window.frames['BrewRenderer'].contentDocument.getElementsByClassName('toolBar').item(0).style.display='none';
node.offsetHeight; // accessing this is enough to trigger a reflow
node.style.display='';
}