Closed Bug 45219 Opened 24 years ago Closed 24 years ago

Cleanup CookieViewer.xul

Categories

(Core Graveyard :: Skinability, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: roc, Assigned: morse)

Details

(Keywords: polish)

Attachments

(1 file)

I have a patch that cleans up CookieViewer.xul in several ways:
-- changes occurrences of flex="100%" to flex="1"
-- makes trees size vertically to fill available space if the window is resized
-- makes cookie data text fields size horizontally to fill available space 
(useful for seeing long cookie data)
-- changes spring spacing to be consistent across panels
Status: NEW → ASSIGNED
Keywords: nsbeta3, polish
nav triage team: reassign to steve morse. patch attached.
Assignee: ben → morse
Status: ASSIGNED → NEW
Keywords: patch
Fix checked in.  Great improvement.  Thanks.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
The new patch contains several skinability problems.  You cannot use style: in 
an XUL file.  Please handle element styling via id's and classes in external 
css files.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blake, could you please be more specific as to just what it is that shouldn't be 
used.  There were many instances of

    style="height: 5px;"

already in the file before this fix was made.
None of the widgets may have the style: attribute.  All styling must be done in 
external CSS files for skinability reasons.  This can be achieved by defining 
classes for elements and then styling those classes in the external CSS file 
(via .class { } ) or by styling the individual widgets by id (via #id { } ).
See other XUL/CSS files for examples.

Something like this is especially bad: <titledbox style="border: 2px groove 
#CCCCDD;" orient="vertical">.  All of these non-skinnable cases must be fixed 
for beta3...
Component: Cookies → Skinability
QA Contact: tever → BlakeR1234
Then your comment has nothing to do with the patch per se but with the use of 
something that already existed in this xul file as well as many others.  Please 
file a separate bug report on the removal of styling in xul files making sure 
you list which xul files are the offenders in that bug report.

The work outlined in this bug report has been completed and so it is justifiable 
to mark this report as fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
actually, the patch adds a couple of style attributes (for example:

-          <spring flex="5%"/>
+          <spring style="height: 5px;"/>

)

But I'll file a separate bug.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: