Closed Bug 245088 Opened 21 years ago Closed 21 years ago

The 'Customize toolbar' window looks bad in recent nightlies and 0.9rc

Categories

(Firefox :: Toolbars and Customization, defect, P2)

x86
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: marcoos, Assigned: bugs)

References

Details

(Keywords: fixed-aviary1.0, regression, Whiteboard: http://testrunner.mozilla.org/test.cgi?run_id=243#848)

Attachments

(6 files, 3 obsolete files)

Build: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a2) Gecko/20040529 Firefox/0.8.0+ A vertical toolbar is shown in the Customize window, which makes the buttons unreadable. A screenshot follows.
Attached image Screenshot
I can also reproduce this bug in the aviary branch build for Linux. (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040605 Firefox/0.8.0+)
Changing kWindowWidth in customizeToolbar.js from 600 to 650 fixes the problem. This patch does just this.
In my opinion, this bug should be a blocker for 0.9.
Flags: blocking0.9?
Summary: The 'Customize toolbar' window looks bad in recent nightlies → The 'Customize toolbar' window looks bad in recent nightlies and 0.9rc
See bug 171454 - very similar, but no necessarily a dupe? Both are caused by setting an explicit pixel width instead of letting the window resize automatically.
In comment 0 I wrote "vertical toolbar", I of course meant "vertical scrollbar". :)
After opening the customize dialog several times, I even had this terrible window.
*** Bug 246005 has been marked as a duplicate of this bug. ***
I wonder why some people have it even more narrow than I do (attachment 149623 [details])...
(In reply to comment #9) > I wonder why some people have it even more narrow than I do (attachment 149623 [details])... I posted the narrow one. Actually, I get it only sometimes, usually I get something similar to what you posted. If you open the customize dialog via context menu of a toolbar, apply (without do any changes), open it again, apply (make this several times in a row) then you will notice how the height of the dialog changes (first showing only 2 lines of icons, then 2.5 lines, then 3 lines), and suddenly, you get the messed up dialog like shown in attachment 150368 [details]
severity major since it makes it unusable. keyword regression
Severity: normal → major
Keywords: regression
This bug persisted in Firefox 0.9 final, using GTK2+XFT build here.
confirming. I see this bug in state from attchment 150368 with 0.9 final. No matter in new profile or old.
Flags: blocking1.0?
Also the funny thing is that everytime i'm opening this pseudo-window it opens in another place, width and height. In result somethimes i can use it.
Flags: blocking0.9?
I have seen a situation like in 'Screenshot' at my girlfriends PC. In most cases it renders correctly for me, but sometimes I get the same thing as in 'Another Screenshot'.
Flags: blocking1.0? → blocking1.0+
Priority: -- → P2
I hope someone can fix this ugliness for 0.9.1. I can't imagine advocating for this version of firefox otherwise, despite the very nice improvements.
Did this regress relatively recently, or had people been seeing it for a long time before this bug was opened? Also, so far this seems to be linux only...are those seeing the bug running with non-standard settings that could be causing the problem (big font, etc.)? Not that it shouldn't be fixed to work with such settings, I'm just trying to figure out what might cause this.
I've been seeing this 'forever' (i.e. since I first tried firebird, after it changed its name from pheonix).
If it's not new, then there's a good chance this is a dupe of bug 171454, or at least a symptom of the same problem.
Whiteboard: http://testrunner.mozilla.org/test.cgi?run_id=243#848
*** Bug 255024 has been marked as a duplicate of this bug. ***
Attached image narrow window
I have seen the problem with window being narrow long before 0.9. It may have something to do with my machine being rather slow (a Duron 850)?
(In reply to comment #17) > Did this regress relatively recently, or had people been seeing it for a long > time before this bug was opened? Also, so far this seems to be linux only...are Sorry for additional bugspam. I remember seing it on Windows as early as in, say, 0.6.
There is a race condition in the onLoad() function where the window is being moved while it's not completely created. I put an alert() before the repositionDialog() invocation and the problem vanished. I could try fixing it myself somehow but I guess it shouldn't be that hard now (plus, it's 2:26 am here). If it can't be fixed easily, I suggest disabling the scroll effect (at least for the 1.0 release).
I have fixed it in my Firefox (but it's not at all elegant) by applying a 200 ms delay in the onLoad() method in $FIREFOX/chrome/toolkit.jar!content/global/customizeToolbar.js and it works, but it can't be fixed this way in the official FF. The elegant solution would be to delay the repositioning of the window until it's available. But I don't know how to do it.
Attached patch a patch (obsolete) — Splinter Review
The onLoad() function is called BEFORE the window is completely created. Therefore, if ma y happen (although, it doesn't have to, there's a race condition) that the repositionDial og() function does not have any effect. So, we could periodically (say, every 10 ms) check if the window has been constructed (by checking if window.left is not undefined). If so, we can proceed with the repositioning.
1. Sorry for bugspam. 2. The fix is, I would say, temporary, until the bug with onLoad() (being called before the window is ready) is fixed.
Attachment #159264 - Attachment is obsolete: true
Depends on: 103928
Comment on attachment 159266 [details] [diff] [review] patch, standards compliant (kudos, gandalf) It still doesn't work as it should. Sometimes the bug occurs.
Attachment #159266 - Attachment is obsolete: true
Simply moving the hidechrome attribute to the xul increases window creation speed lot.
This patch kills the slide out/in animation (which looks like ass on anything but the fastest builds/systems), and also sets up the dialog content before repositioning. It also doesn't try to force the width and/or height -- this means that we'll end up with a possibly large window, but at least all the icons will be visible without scrolling. Calling repositionDialog from a 0-timeout would ensure that the dialog is always the right size, but it also causes a visual "jump" of the dialog as soon as its displayed
Why this patch does not remove slideOpen and slideClose functions since they're not used anymore? Andrzej wrote that setting width via XUL <window> property fixes this problem. I think it's a better solution.
No, it did not. I have noticed a few "narror windows" with the settings moved to XUL as well. But it did help make them less occuring, yes.
Attached patch patchSplinter Review
Remove slide-out, make the window not reposition badly near the bottom of the screen, add mconnor's close keybindings.
Attachment #160194 - Attachment is obsolete: true
Fixed br & trunk.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #160194 - Flags: review?(bugs)
looks like it has been fixed on the branch, so could somebody please add the fixed-aviary1.0 keyword? (i know this is trivial but it would be useful for querying the overall number of remaining bugs)
Keywords: fixed-aviary1.0
This may have caused bug 262256.
I still get the scrollbar plus the window still "looks bad" because it has no border whatsoever. Screenshot follows.
QA Contact: bugzilla → toolbars
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: