mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
[ticket/10860] Fixing js error in updater
Fixing javascript error in side-by-side diff styling in updater: resizing inner block instead of outer block and increasing height by inner/outer block difference. PHPBB3-10860
This commit is contained in:
parent
8cb0e30afc
commit
a960bd6790
1 changed files with 2 additions and 2 deletions
|
@ -15,12 +15,12 @@
|
||||||
// <![CDATA[
|
// <![CDATA[
|
||||||
function resize_panel()
|
function resize_panel()
|
||||||
{
|
{
|
||||||
var block = document.getElementById('codepanel');
|
var block = document.getElementById('diff_content');
|
||||||
var height;
|
var height;
|
||||||
|
|
||||||
if (window.innerHeight)
|
if (window.innerHeight)
|
||||||
{
|
{
|
||||||
height = window.innerHeight - 150;
|
height = window.innerHeight - 200;
|
||||||
block.style.height = height + 'px';
|
block.style.height = height + 'px';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue