[Catalyst] Horizontal scrollbar on debug screen

Sebastian Riedel sri at oook.de
Wed Nov 30 00:47:44 CET 2005


Am 29.11.2005 um 16:59 schrieb Will Hawes:

> 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.

Are you sure?
It looks fine in Safari and Firefox.


--
sebastian




More information about the Catalyst mailing list