Closed
Bug 172903
Opened 23 years ago
Closed 23 years ago
OS/2 only - customizing toolbar doesn't work
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: mkaply, Assigned: hyatt)
Details
Attachments
(1 file, 1 obsolete file)
|
787 bytes,
patch
|
Details | Diff | Splinter Review |
This is very strange. I'm not assigning it to me because I hope to get some advice.
On OS/2, the customize toolbar window is coming up as 0x0.
If I resize it with a utility, it works fine.
Is there anything special about how this window is put up?
The only thing that comes to mind is that the size is set on window creation and
never resized, which is inconsistent with other Mozilla windows...
| Reporter | ||
Comment 1•23 years ago
|
||
Definitely has nothing to do with window creation.
I've no idea why this window behaves differently than other Mozilla windows.
I'm going to look at that Windows on Windows and see what the difference is.
| Reporter | ||
Comment 2•23 years ago
|
||
OK, the XUL for customizing toolbar is really screwed up. Is that a window or a
dialog?
If I change window to dialog, I get something to come up on Os/2 at least.
The customizing UI seems like a pretty bastardized thing. Is that the final UI?
Having a window with no chrome at all seems pretty bad.
| Reporter | ||
Comment 3•23 years ago
|
||
Getting closer.
The slideOpen seems to not be happening.
If I explicitly set window.outerHeight, I get a window.
| Reporter | ||
Comment 4•23 years ago
|
||
OK, I have no explanation, but I know what is happening.
in slideOpen, the window.outerHeight += kAnimateIncrement is not actually
affecting window.outerHeight - it is staying 0.
I have verified that kAnimateIncrement is 50, and the line is executed, but
after outerheight += kAnimateIncrement, outerheight is still 0.
Figure that one out.
| Reporter | ||
Comment 5•23 years ago
|
||
OK, I have the answer.
On Os/2, when you set a window size to 600 x 0, it gets set to 0x0. Os/2 can't
maintain a width if there is no height (seems logical to me)
So the issue is that the first time we come through the code in customizing
toolbar, we set the size to 600x0.
This seems wrong to me anyway.
I'll put together a patch to fix this in customizetoolbar.js.
I see no way to fix this on the Os/2 side.
| Reporter | ||
Comment 6•23 years ago
|
||
I initialize the windowheight to 50 and then set the timer to cause slideOut to
get called again.
Also, inside slideout, I use the height of the window to determine when to
stop, I don't count steps.
Same changes for slideClosed
| Reporter | ||
Comment 7•23 years ago
|
||
Please will SOMEONE look at this bug with path?
I'd like to have an Os/2 Phoenix without private fixes pretty please
Comment 8•23 years ago
|
||
Michael, my original slideout code checked the height instead of using steps,
but that broke Linux which didn't always report the actual height of the window.
Comment 9•23 years ago
|
||
This patch will break Linux; we used to do what it does and changed to steps
purposely.
Joe Hewitt is really the one to talk to about this code, it's his. You could
try e-mailing him, but it's best to catch him on irc or AIM.
Comment 10•23 years ago
|
||
Wait up, my previous comment is inaccurate. I changed to using steps because on
some systems, win98 I think, there were cases where during the slideClosed
animation, the height of the window would never shrink beyond a certain
threshold, even if I told it to.
| Reporter | ||
Comment 11•23 years ago
|
||
Interesting. Well I think the assumption here that you can set a window to 600x0
and then query the width and get back 600 is incorrect.
Width is not necessarily defined if height is not > 0.
All I need for OS/2 is to simple not set the height to 0 initially. Even just
setting it to 1 fixes this problem for us.
Of course then, everything is 1, 51, 101, etc.
| Reporter | ||
Comment 12•23 years ago
|
||
What about just starting at 50 instead of 0? Visually, there shouldn't be any
difference. The window starts not being there.
| Reporter | ||
Comment 13•23 years ago
|
||
Start at 50 and subtract one from the increment.
Makes NO difference visually.
URGENTly needed for OS/2
Attachment #102163 -
Attachment is obsolete: true
| Reporter | ||
Comment 14•23 years ago
|
||
This prevents the OS/2 build from functioning.
Severity: normal → blocker
Comment 15•23 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
QA Contact: bugzilla → toolbars
You need to log in
before you can comment on or make changes to this bug.
Description
•