Closed
Bug 310226
Opened 20 years ago
Closed 20 years ago
"new mail alert" popup isn't height enough (got smaller in latest builds)
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird1.1
People
(Reporter: g.teunis, Assigned: mscott)
References
()
Details
(Keywords: fixed1.8)
Attachments
(2 files, 1 obsolete file)
5.13 KB,
image/png
|
Details | |
1.02 KB,
patch
|
jens.b
:
review+
asa
:
approval1.8b5+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050927 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050927 Firefox/1.6a1
In the latest builds (aprox 2 weeks or so) the new mail popup isn't height enough.
It lost space below the text / message icon.
Reproducible: Always
Reporter | ||
Comment 1•20 years ago
|
||
The popup should have more space below the text / message picture.
Assignee | ||
Comment 2•20 years ago
|
||
I see this too.
Would be great if you could help me narrow down the regression window.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → Thunderbird1.1
Reporter | ||
Comment 3•20 years ago
|
||
(In reply to comment #2)
> Would be great if you could help me narrow down the regression window.
Took me a while, but it is introduced in the 20050917 build (the 20050916 worked
fine here)
Assignee | ||
Comment 4•20 years ago
|
||
this regression was caused by Bug 305375
Assignee | ||
Comment 5•20 years ago
|
||
this backs out the alert.js changes made in Bug 305375 so the UI regression on
Windows is fixed.
Assignee | ||
Updated•20 years ago
|
Comment 6•20 years ago
|
||
The most likely culprit is my workaround for a sizeToContent() bug that adds a
really ugly 1-pixel white line to the right of the window (which is known, but
the cause of which was never tracked down).
Note that this workaround was not neccessary for making it work on Linux (that
bug seems cross-platform); not starting with a 0 pixel-height window was, though.
For now, please back out the changes. I will do some testing soon, and try to
come up with a more selective workaround that doesn't cause any regressions.
Note to self: fix this for SeaMonkey, too.
Assignee | ||
Comment 7•20 years ago
|
||
hey Jens,
do you want me to back out all the changes to alert.js or to try just a subset
of those changes?
Comment 8•20 years ago
|
||
(In reply to comment #7)
> do you want me to back out all the changes to alert.js or to try just a subset
> of those changes?
Wow, I can choose? :-) Then, please just remove these lines:
- // work around a bug where sizeToContent() leaves a border outside of the content
- var contentDim = document.getElementById("alertBox").boxObject;
- var windowDim = document.documentElement.boxObject;
- window.resizeTo(contentDim.width, contentDim.height);
I'm quite sure the rest does not affect this problem.
Assignee | ||
Comment 9•20 years ago
|
||
there's always a choice :)
Attachment #197751 -
Attachment is obsolete: true
Attachment #197758 -
Flags: review?(jens.b)
Updated•20 years ago
|
Summary: "new mail alert" popup isn't height enough (got smaller in latest builds) → "new mail alert" popup isn't nigh enough (got smaller in latest builds)
Updated•20 years ago
|
Summary: "new mail alert" popup isn't nigh enough (got smaller in latest builds) → "new mail alert" popup isn't high enough (got smaller in latest builds)
Comment 10•20 years ago
|
||
(In reply to comment #8)
>- // work around a bug where sizeToContent() leaves a border outside of the
content
>- var contentDim = document.getElementById("alertBox").boxObject;
>- var windowDim = document.documentElement.boxObject;
>- window.resizeTo(contentDim.width, contentDim.height);
Is the outerWidth/Height not the same as the innerWidth/Height for some reason?
Try changing the last line to window.innerWidth = contentDim.width;
(also the windowDim line isn't necessary as I noted in the xpfe version).
Summary: "new mail alert" popup isn't high enough (got smaller in latest builds) → "new mail alert" popup isn't height enough (got smaller in latest builds)
Assignee | ||
Comment 11•20 years ago
|
||
(In reply to comment #10)
> (In reply to comment #8)
> Try changing the last line to window.innerWidth = contentDim.width;
> (also the windowDim line isn't necessary as I noted in the xpfe version).
Oddly enough, that fixed the problem with the height not being right, but the
alert dialog is now now wide enough. The text runs right up to the right edge of
the alert popup. (On windows)
Comment 12•20 years ago
|
||
I think we shouldn't blindly set either width or height of the window to that of
the box. After all, the bug in sizeToContent() produces some kind of rounding
error, so it can only be a matter of 1 pixel (is that correct, Neil?). We must
detect the bug unambigiously, and then resize only by that one pixel.
Assignee | ||
Comment 13•20 years ago
|
||
jens can you review the backout so we can get this fixed before it's too late
for 1.8, then you and Neil can discuss alternative ways to solve it after the
fact? thanks.
Comment 14•20 years ago
|
||
Comment on attachment 197758 [details] [diff] [review]
back out just the part of alert.js that's causing the problem.
>- // start with a 1px height, because 0 causes trouble with gtk1/2
>- window.outerHeight = 1;
>+ window.outerHeight = 0;
Starting the animation with a 1 pixel height is neccessary for Linux, and it
shouldn't affect the sizing problem. Please leave that line out of the patch.
With this change, r=me.
Attachment #197758 -
Flags: review?(jens.b) → review+
Assignee | ||
Comment 15•20 years ago
|
||
Comment on attachment 197758 [details] [diff] [review]
back out just the part of alert.js that's causing the problem.
This backs out part of a change we took for Bug 305375 which regressed the new
mail notification for Thunderbird on Windows.
Attachment #197758 -
Flags: approval1.8b5?
Updated•20 years ago
|
Attachment #197758 -
Flags: approval1.8b5? → approval1.8b5+
Assignee | ||
Comment 16•20 years ago
|
||
fixed branch and trunk using a pixel height of 1.
Comment 17•20 years ago
|
||
See also bug 310900.
Comment 18•20 years ago
|
||
Could this have caused Bugzilla Bug 311256 ?
You need to log in
before you can comment on or make changes to this bug.
Description
•