* Modify window resize style.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -38,6 +38,7 @@ $(function()
|
||||
$('#filesTree').css('height', paneHeight + 45)
|
||||
}
|
||||
setHeight();
|
||||
$(window).resize(setHeight);
|
||||
|
||||
$(document).on('click', '.repoFileName', function()
|
||||
{
|
||||
|
||||
@@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user