[Webkit-unassigned] [Bug 31611] Web Inspector: turn off line wrapping in resource views for Resources and Scripts panels

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 24 08:04:26 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=31611





--- Comment #11 from Patrick Mueller <pmuellr at yahoo.com>  2009-11-24 08:04:24 PST ---
Created an attachment (id=43772)
 --> (https://bugs.webkit.org/attachment.cgi?id=43772)
some of the required changes - incomplete

Some of the changes required for this fix.

Three changes:

- change the line number cell to use min-width: 31px; without this, the number
area narrows for long lines.  I wasn't sure if usage of min-width means we
didn't actually need the width style or not.  

- change the line content cell to use white-space: pre; this is the primary fix
- lines no longer wrap

- remove an extra line number gutter; turns out there are two added, the one
removed here does not scroll when scrolling horizontally; not sure why this one
is there

With these changes, the source viewed in the Scripts panel works well (see some
caveats below).  However, source viewed from the Resources panel, not so much. 
The problem in the Resources panel is that one of the <div>, <table>, <iframe>
is set too long, and so you have to scroll to the bottom of the source text to
see the horizontal scroll bar.  Actually, this is ok for me - I rarely need to
scroll right, and even if you need to, you can do that by selecting and
dragging right (and left to scroll back).  But clearly we can't ship it this
way.

I spent a bit of time trying to get the Resources panel to work, but was
unsuccessful.  Figured I'd try passing the torch to someone more familiar with
the guts of [Script,Source,Resource][Panel,Frame,View].js .  I may take another
go at it if no one else picks it up.

Caveats:

- the line number area scrolls horizontally with the text.  Just like TextMate.
 Unlike BBEdit.  I prefer the BBEdit-style of NOT scrolling the line numbers,
but it's not a deal-breaker for me to have this, and I suspect getting the
numbers to NOT scroll will be work, if it's even possible.

- in the Resources panel, the HTTP info at the top scrolls vertically with the
text.  It already did this, there's no function change here.  But I'm wondering
now if it should also be static, and not scroll with the text.  I think i
prefer it to scroll, but not a big deal either way.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list