[Catalyst] Horizontal scrollbar on debug screen

John Lifsey - Contractor - john.lifsey at nrl.navy.mil
Tue Nov 29 19:01:41 CET 2005


Those using Data::Dumper can just embed output in <pre> tags. That way 
nothing else gets mangled unintentionally, but thats the way I'm used to 
doing it, so by experience, its probably wrong. :)



Will Hawes wrote:
> 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.
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4082 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051129/3896815a/smime-0001.bin


More information about the Catalyst mailing list