[Catalyst] Horizontal scrollbar on debug screen

Will Hawes info at whawes.co.uk
Tue Nov 29 16:59:57 CET 2005


Sebastian Riedel wrote:
> 
> Am 29.11.2005 um 12:30 schrieb Will Hawes:
> 
>> FYI - a minor issue, but for long error messages I get a horizontal 
>> scrollbar on the debug screen when using Firefox. Screen resolution is 
>> 1024x768 (it's a notebook).
>>
>> I'm not sure if this is by design (i.e. to see error messages on a 
>> single line for readability), but on a smaller screen it gets irritating.
>>
>> Commenting out "white-space: pre" in the CSS in Catalyst::Engine 
>> removes it and doesn't seem to break anything for higher resolutions.
> 
> Thx, applied.

Caveat - just discovered that this change means that output from 
Data::Dumper gets crammed onto one line and isn't very readable. So a 
bit of work needs to be done on the error message:

$error =~ s/\n/<br\/>/g;
$error =~ s/\B\s\B/&nbsp;/g;


The above formats the error message nicely without reintroducing the 
scrollbar. HTH.




More information about the Catalyst mailing list