forked from I2P_Developers/i2p.i2p
On iframed i2ptunnel pages, resize the height of the iframe when a config table is expanded or contacted
This commit is contained in:
@ -52,6 +52,14 @@ hideableTables.forEach(function(configTable) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
configTable.parentNode.style.visibility = "visible";
|
configTable.parentNode.style.visibility = "visible";
|
||||||
|
var iiframe = document.getElementById("i2ptunnelframe");
|
||||||
|
if (iiframe != null) {
|
||||||
|
var adjustHeight = 0;
|
||||||
|
for (var child = frame.firstChild; child !== null; child.nextSibling){
|
||||||
|
adjustHeight += child.offsetHeight;
|
||||||
|
}
|
||||||
|
iiframe.height = adjustHeight;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
showAllControls()
|
showAllControls()
|
||||||
for (var i = 0, row; (row = hideableTables[0].offsetParent.rows[i]); i++) {
|
for (var i = 0, row; (row = hideableTables[0].offsetParent.rows[i]); i++) {
|
||||||
|
Reference in New Issue
Block a user