Closed Bug 80494 Opened 23 years ago Closed 23 years ago

Extra vertical separator drawn when Bookmarks & Home button are not shown.

Categories

(SeaMonkey :: UI Design, defect, P5)

x86
Windows 98
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.0

People

(Reporter: doctor__j, Assigned: bugs)

References

Details

(Keywords: polish)

Attachments

(5 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9+) Gecko/20010512
BuildID:    2001051208

Reproducible: Always
Steps to Reproduce:
1. Config Moz so that the Bookmarks and Home button is NOT shown in the Personal
toolbar.
2. Show the Personal toolbar and see the extra vertical separator drawn.

Expected Results:  No need to draw two vertical separators.
*** Bug 84312 has been marked as a duplicate of this bug. ***
*** Bug 85033 has been marked as a duplicate of this bug. ***
confirming bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 78333 has been marked as a duplicate of this bug. ***
Not a themes bug, let's try XPApps.  Some js needs to mark an attribute for when
all icons in the left portion are hidden.
Assignee: hewitt → pchen
Component: Themes → XP Apps
QA Contact: pmac → sairuh
QA Contact: sairuh → claudius
My present for mpt :-)
Here's a patch that fixes this bug, I'm not sure whether this is the correct thing
to do, but it does work. CC'ing alecf since he wrote that function.
Any reviews or comments?
Thanks.
Attached patch Fix bug 80494Splinter Review
bzzzt. Wrong fix. 
There are other buttons that can appear in that toolbar in the commercial
version of this product. what you need to do is see if ALL the buttons (don't
hardcode "home") are hidden, then hide the separator.
-> ben
Assignee: pchen → ben
Priority: -- → P5
Target Milestone: --- → mozilla1.0
alecf: How do you test for the visibility of buttons which don't exist? For 
every pref which hides/shows a particular UI element, should that element be 
placed inside a <box id="whatever"> and the pref hide/show that box instead, 
just in case some distributor somewhere decides to lump other elements in next 
to that element, controlled by the same pref (as in this case)? If so, what 
sort of performance impact would would adding all those boxes have?
Component: XP Apps → XP Apps: GUI Features
I like the 'test for visibility of elts prior to separator' method that alec
suggests better than the box version, as it is likely to be simpler. 

Take a look at bug 85032 - we position the bookmark button permanently on the
far left of the personal toolbar (which makes sense - vendors can add other
buttons here, shifting the bookmarks about the place. Better to have it in a
permanent place). This would probably make this bug simpler - you'd only have to
check if the bookmarks button was there.
I produced my patch knowing that the home and bookmarks buttons should be
swapped (see the bug mentioned above), however that is not really my problem,
and it's Ben's call whether we should swap them or not. I'll get you a more
generic patch tomorrow.
nav triage team:

marking nsbeta1+
Keywords: nsbeta1+
New patch posted. It can handle any number of buttons left of the separator. I
tested it by moving the bookmarks button left of the separator and it worked
fine. I added the persist="hidden" to the separator because the pref is not read
on startup. I wrote a new function for clarity, but I could as easily do
everything in nsButtonPrefListener.
Comments or reviews?
Thanks.
*** Bug 49956 has been marked as a duplicate of this bug. ***
*** Bug 91814 has been marked as a duplicate of this bug. ***
sr=ben@netscape.com for this providing you add a call to hasAttribute("hidden")
to the if check in your checking function because a distributor may add buttons
which do not have the hidden attribute. 
Blocks: advocacybugs
r=hwaara
Fix that comment's grammar first though.
Checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You do need a new profile before this will be fixed. I was wondering why I saw
the check in weeks ago and I still have the divider.

Verified.
Status: RESOLVED → VERIFIED
remove self
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: