File: 1006_fix-overflow-debug-print_a-func.patch

package info (click to toggle)
gosa 2.8~git20230203.10abe45%2Bdfsg-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,364 kB
  • sloc: php: 32,085; javascript: 10,836; pascal: 3,775; xml: 3,135; sh: 852; python: 162; makefile: 45; perl: 2
file content (25 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Make table of print_a() scrollable and allow overflow on body. This makes debugLevel > 0 usable again.
Author: Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de>

--- a/include/functions_debug.inc
+++ b/include/functions_debug.inc
@@ -226,7 +226,7 @@
 	if($return_mode) {
 		return $output;
 	} else {
-		print $output;
+		print "<div style='overflow: scroll; width: auto; max-height: 500px;'>" . $output . "</div>";
 		return TRUE;
 	}
 }
--- a/html/themes/default/css/main.css
+++ b/html/themes/default/css/main.css
@@ -9,7 +9,7 @@
     margin: 0;
     font-family: "LiberationSans", Arial, Verdana, sans-serif;
     font-size: 12px;
-    overflow-y: hidden;
+    /* overflow-y: hidden; */
 }
 
 h1 {