A different solution for preventing the menubar from floating in print view

This commit is contained in:
Rouslan Placella 2011-11-23 22:25:21 +00:00
parent 9671074354
commit fad4b48539
3 changed files with 5 additions and 1 deletions

View File

@ -246,5 +246,7 @@ if ($num_tables == 0) {
*/
PMA_printButton();
echo "<div id='PMA_print_view'></div>\n";
require './libraries/footer.inc.php';
?>

View File

@ -3694,7 +3694,7 @@ $(document).ready(function() {
* Makes the breadcrumbs and the menu bar float at the top of the viewport
*/
$(document).ready(function () {
if ($("#floating_menubar").length) {
if ($("#floating_menubar").length && $('#PMA_print_view').length == 0) {
$("#floating_menubar")
.css({
'position': 'fixed',

View File

@ -441,5 +441,7 @@ foreach ($the_tables as $key => $table) {
*/
PMA_printButton();
echo "<div id='PMA_print_view'></div>\n";
require './libraries/footer.inc.php';
?>