Bug 31738

Summary: Web Inspector: Console Scope Bar should be on top of console when Console is a Panel
Product: WebKit Reporter: Brian Weinstein <bweinstein>
Component: Web Inspector (Deprecated)Assignee: Brian Weinstein <bweinstein>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, keishi, pfeldman, pmuellr, rik, timothy, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Screenshot 1
none
Screenshot 2
none
[PATCH] Fix
timothy: review-, bweinstein: commit-queue-
Scope Bar On Bottom
none
Scope Bar On Top
none
[PATCH] Fix pfeldman: review+, bweinstein: commit-queue-

Description Brian Weinstein 2009-11-20 12:38:48 PST
Created attachment 43604 [details]
Screenshot 1

Console Scope Bar should be on top of console to match other scope bars.
Comment 1 Brian Weinstein 2009-11-20 12:39:29 PST
Created attachment 43605 [details]
Screenshot 2
Comment 2 Pavel Feldman 2009-11-20 12:43:46 PST
Screenshot 1 looks good, but Screenshot 2 does not. I think we should leave things as is for drawer version of console. I wonder what happens to animation then...
Comment 3 Brian Weinstein 2009-11-20 12:44:43 PST
Created attachment 43606 [details]
[PATCH] Fix
Comment 4 Timothy Hatcher 2009-11-20 13:11:20 PST
Comment on attachment 43606 [details]
[PATCH] Fix

We should not have the scope bar on top in drawer mode. It is hwere it is to save vertical space. I agree, it should be on top in panel mode though.
Comment 5 Brian Weinstein 2009-12-09 15:59:29 PST
Created attachment 44575 [details]
Scope Bar On Bottom
Comment 6 Brian Weinstein 2009-12-09 15:59:54 PST
Created attachment 44576 [details]
Scope Bar On Top
Comment 7 Brian Weinstein 2009-12-09 16:04:39 PST
Created attachment 44577 [details]
[PATCH] Fix

Screenshots are with this patch applied.
Comment 8 WebKit Review Bot 2009-12-09 16:05:39 PST
style-queue ran check-webkit-style on attachment 44577 [details] without any errors.
Comment 9 Pavel Feldman 2009-12-10 10:25:12 PST
Comment on attachment 44577 [details]
[PATCH] Fix

> +        // Update styles, and give coneole-messages a top margin so it doesn't overwrite the scope bar.

coneole-messages -> console-messages

> +        scopeBar.addStyleClass("console-filter-top");
> +        document.getElementById("console-messages").style.marginTop = "23px";

xenon usually wants numbers to be a part of css
Comment 10 Timothy Hatcher 2009-12-10 10:43:21 PST
(In reply to comment #9)
> > +        scopeBar.addStyleClass("console-filter-top");
> > +        document.getElementById("console-messages").style.marginTop = "23px";
> 
> xenon usually wants numbers to be a part of css

Yes this should be done by adding/removing a class name.
Comment 11 Brian Weinstein 2009-12-10 10:59:21 PST
Landed in r51952.