* Modify window resize style.

This commit is contained in:
caoyanyi
2022-12-07 09:14:26 +08:00
parent 23300a9f4c
commit cbc00cef81
3 changed files with 4 additions and 0 deletions
+2
View File
@@ -115,11 +115,13 @@ $(document).ready(function()
function setHeight()
{
var paneHeight = $(window).height() - 120;
if(edition != 'open') paneHeight -= 80;
if(isonlybody) paneHeight = 500;
$('#fileTabs .tab-pane').css('height', paneHeight + 'px')
$('#filesTree').css('height', paneHeight + 35)
}
setHeight();
$(window).resize(setHeight);
$(document).on('click', '.repoFileName', function()
{
+1
View File
@@ -38,6 +38,7 @@ $(function()
$('#filesTree').css('height', paneHeight + 45)
}
setHeight();
$(window).resize(setHeight);
$(document).on('click', '.repoFileName', function()
{
+1
View File
@@ -14,6 +14,7 @@
<?php
$browser = helper::getBrowser();
js::set('browser', $browser['name']);
js::set('edition', $config->edition);
?>
<?php if(!isonlybody()):?>
<div id='mainMenu' class='clearfix'>