On Nov 7, 5:48 pm, John J Barton <[EMAIL PROTECTED]> wrote:

> Did you know you can filter the list just by typing a character or
> two?

No, but now I remember once pressing an 'a' did change the list :)


> > As soon as you click on the button (bottom right) to open firebug,
> > buildViewAround is called *but the window is not open yet*.
>
> ? How can you click on the bottom right of a window that is not open?

In the bottom right of the firefox window there is a firebug icon
displayed. When you press on that icon, the firebug window pops up in
the bottom half of the screen. Before pressing the firebug icon, the
firebug window is closed and this is when the clientHeight = 0.


> I've been working on this problem a lot, obviously not successful yet.
> The basic problem is:
>  1)  I can't know the size of the lines until I have a line to
> measure.
>  2) I don't have a line to measure until I render the lines
>  3) I can't render the lines until I know the size of the lines.
>  4) See #1.
>
> So I'd like to figure out how buildViewAround is getting called.

Yes I can see this problem. The clientHeight initialy will always be
zero after a cold start of firefox, thus displaying only the first
line. Scrolling now re-calculates the view and currently I'm pleased
with the rendering speed.

What we now see is that when you change the size of the firebug
scripts panel, the lines are not re-calculated, leaving some space
underneath if you enlarge the scripts window. A re-calculate on resize
should be enough to have a correct viewport. But I don't know if a
resize event is fired.

>
> > So my quick solution for now is to always call setViewableLines. Then
> > when I scroll the window, the viewport is adjusted to the correct
> > size.
>
> I'm trying to avoid any "always call" if I can avoid it, the viewport
> code needs to be as snappy as possible.

I agree completely. The solution should be event triggered (resize?)


> > (During my research, I've noticed that sometimes the panel.html scope
> > is not available making me need to restart several times before it is.
>
> Restart chromebug? I've not seen this.

Restart firefox.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to