fix to remove scrollbar bug in IE without quirks mode

This commit is contained in:
Sebastian Mendel
2006-07-08 09:35:52 +00:00
parent beca72fb69
commit 757ba7b8da
4 changed files with 53 additions and 28 deletions

View File

@@ -6,6 +6,10 @@ $Id$
$Source$
2006-07-08 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* left.php, libraries/header_meta_style.inc.php, libraries/header.inc.php:
fix to remove scrollbar bug in IE without quirks mode
2006-07-07 Marc Delisle <lem9@users.sourceforge.net>
* db_details_qbe.php: deactivated some work in progress

View File

@@ -2,18 +2,18 @@
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* display db and table selection
* the navigation frame - displays server, db and table selection tree
*/
/**
* Gets a core script and starts output buffering work
*/
require_once('./libraries/common.lib.php');
require_once './libraries/common.lib.php';
// free the session file, for the other frames to be loaded
session_write_close();
require_once('./libraries/ob.lib.php');
require_once './libraries/ob.lib.php';
if ($GLOBALS['cfg']['OBGzip']) {
$ob_mode = PMA_outBufferModeGet();
if ($ob_mode) {
@@ -21,8 +21,8 @@ if ($GLOBALS['cfg']['OBGzip']) {
}
}
require_once('./libraries/bookmark.lib.php');
require_once('./libraries/relation.lib.php');
require_once './libraries/bookmark.lib.php';
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**
@@ -52,13 +52,13 @@ $db_start = $db;
// to a seperate file. It can now be included by libraries/header.inc.php,
// querywindow.php.
require_once('./libraries/header_http.inc.php');
require_once './libraries/header_http.inc.php';
/**
* Displays the frame
*/
// remove vertical scroll bar bug in ie
echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>';
// xml declaration moves IE into quirks mode, making much trouble with CSS
/* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -103,6 +103,16 @@ echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>';
}
//]]>
</script>
<?php /* remove vertical scroll bar bug in ie */ ?>
<!--[if gte IE 6]>
<style type="text/css">
/* <![CDATA[ */
html {
overflow-y: scroll;
}
/* ]]> */
</style>
<![endif]-->
</head>
<body id="body_leftFrame">

View File

@@ -54,7 +54,7 @@ if (empty($GLOBALS['is_header_sent'])) {
$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();
?>
<script type="text/javascript" language="javascript">
<!--
// <![CDATA[
// Updates the title of the frameset if possible (ns4 does not allow this)
if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown'
&& typeof(parent.document.title) == 'string') {
@@ -72,7 +72,7 @@ if (empty($GLOBALS['is_header_sent'])) {
? str_replace('\'', '\\\'', $GLOBALS['strNoDropDatabases']) : ''; ?>';
var confirmMsg = '<?php echo(($GLOBALS['cfg']['Confirm']) ? str_replace('\'', '\\\'', $GLOBALS['strDoYouReally']) : ''); ?>';
var confirmMsgDropDB = '<?php echo(($GLOBALS['cfg']['Confirm']) ? str_replace('\'', '\\\'', $GLOBALS['strDropDatabaseStrongWarning']) : ''); ?>';
//-->
// ]]>
</script>
<script src="./js/functions.js" type="text/javascript" language="javascript"></script>
<?php
@@ -84,7 +84,7 @@ if (empty($GLOBALS['is_header_sent'])) {
var jsUserEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strUserEmpty']); ?>';
var jsPasswordEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordEmpty']); ?>';
var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>';
//-->
// ]]>
</script>
<script src="./js/user_password.js" type="text/javascript" language="javascript"></script>
<?php
@@ -96,7 +96,7 @@ if (empty($GLOBALS['is_header_sent'])) {
var jsUserEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strUserEmpty']); ?>';
var jsPasswordEmpty = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordEmpty']); ?>';
var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>';
//-->
// ]]>
</script>
<script src="./js/server_privileges.js" type="text/javascript" language="javascript"></script>
<script src="./js/functions.js" type="text/javascript" language="javascript"></script>
@@ -107,21 +107,21 @@ if (empty($GLOBALS['is_header_sent'])) {
// js index validation stuff
var errorMsg0 = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strFormEmpty']); ?>';
var errorMsg1 = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strNotNumber']); ?>';
//-->
// ]]>
</script>
<script src="./js/indexes.js" type="text/javascript" language="javascript"></script>
<?php
} elseif (isset($js_to_run) && $js_to_run == 'tbl_change.js') {
echo "\n";
?>
//-->
// ]]>
</script>
<script src="./js/tbl_change.js" type="text/javascript" language="javascript"></script>
<?php
} else {
echo "\n";
?>
//-->
// ]]>
</script>
<?php
}
@@ -133,6 +133,16 @@ if (empty($GLOBALS['is_header_sent'])) {
<script src="./js/tooltip.js" type="text/javascript"
language="javascript"></script>
<meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" />
<?php /* remove vertical scroll bar bug in ie */ ?>
<!--[if gte IE 6]>
<style type="text/css">
/* <![CDATA[ */
html {
overflow-y: scroll;
}
/* ]]> */
</style>
<![endif]-->
</head>
<body>
@@ -141,7 +151,7 @@ if (empty($GLOBALS['is_header_sent'])) {
// Include possible custom headers
if (file_exists('./config.header.inc.php')) {
require('./config.header.inc.php');
require './config.header.inc.php';
}

View File

@@ -18,7 +18,8 @@ if ($GLOBALS['text_dir'] == 'ltr') {
$GLOBALS['cell_align_right'] = 'left';
}
// removes the bug with the horizontal scrollbar in IE (it's allways shown, if need it or not)
echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
// xml declaration moves IE into quirks mode, making much trouble with CSS
/* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"