On Nov 17, 12:44 pm, woomla <[EMAIL PROTECTED]> wrote:
> On 14 nov, 17:12, John J Barton <[EMAIL PROTECTED]> wrote:
..
>
> > > The lineheight in firebug.js is not measured correctly (on my systems
> > > that is). I.e. at a certain text size, measureText returns 17 but
> > > chromebug inspect shows a line size of 15. The number of viewableLines
> > > is therefor measured incorrectly, it is to small and thus to less
> > > lines are displayed leaving some white space beneath the script lines.
> > > I somehow solved it by using a magic number translation in measureText
> > > which changes 17 to 15 etc, but I don't think this is the correct
> > > solution.
>
> > I'm open to suggestions...
>
> It would help if you or anyone can verify that this effect exists. Or
> am I the only one having this problem.
I don't have it...on WinXP
>
> > > Sometimes chromebug breaks on error when it encounters an undefined
> > > variable in firebug,js line 1592. this.context.chrome sometimes is
> > > undefined. I'm not investigating this and don't know when it happens,
> > > but I've put a "if (this.context.chrome)" in. I don't know what the
> > > code should do when it is undefined though.
>
> > I know this is tempting and I've done it a lot, but lately I've
> > stopped adding these until I am convinced that I understand the reason
> > for the test. Otherwise we'll end up with "if (property)" in front of
> > every function call. Somehow navigate() is being called on an invalid
> > context, better to figure out why. I've not seen this happen however.
>
> I'm there with you. Better find the course of it. I don't know the pre
> or postconditions for these functions though. Don't you have some kind
> of testing framework for it? I'm rather used to unit testing. I've put
> it in their because it continously breaks my debugger when I was
> debugging another part.
We have only a tiny bit of testing, still trying to get that going.
Equally, we need a way to reproduce chromebug problems. It seems even
harder than testing Firebug...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---