Closed Bug 219239 Opened 21 years ago Closed 21 years ago

Junk Mail Controls dialog size and placement are not remembered

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Stefan.Borggraefe, Assigned: Stefan.Borggraefe)

References

Details

(Keywords: regression)

Attachments

(1 file, 4 obsolete files)

Regression caused by the check-in from bug 180215.
Status: NEW → ASSIGNED
IMHO it should not be resizable, it has no resizable content.

Let's see what the module owners have to say about it.
Neil: I see your point. So this patch changes the dialog so it's not resizable
(as intended but not achieved by bug 180215, right?) and only remembers its
position.
Attachment #131493 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 131493 [details] [diff] [review]
Changes the Junk Mail Controls dialog so it's not resizable and remembers its position

Sorry, JavaScript doesn't support overloading, but you could look into optional
arguments instead.
Attachment #131493 - Flags: review?(neil.parkwaycc.co.uk) → review-
Comment on attachment 131493 [details] [diff] [review]
Changes the Junk Mail Controls dialog so it's not resizable and remembers its position

/me writes 100 times "JavaScript is not Java". ;-)

The funny thing is that this patch worked like expected for the Junk Mail
Controls dialog. But after your r- I checked the other dialogs opened by
OpenOrFocusWindow and noticed, they were affected by my patch, too.
Attachment #131493 - Attachment is obsolete: true
Attached patch Corrected fix. (obsolete) — Splinter Review
Using an optional argument this time.
Attachment #131541 - Flags: review?(neil.parkwaycc.co.uk)
<Neil> Stefan: I got email back from bienvenu - he said please make Junk Mail
Controls a modal dialog.

<Stefan> Neil: ok, I'll update my patch for that bug.
Attachment #131541 - Attachment is obsolete: true
Attachment #131541 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #131742 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 131742 [details] [diff] [review]
Junk Mail Controls dialog is now modal

Sorry, we only use OpenOrFocusWindow for modeless windows, for modal windows
just call openDialog directly.
Attachment #131742 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attachment #131742 - Attachment is obsolete: true
Attached patch revised Patch (obsolete) — Splinter Review
Now MsgJunkMail() just calls window.openDialog().
Attachment #131750 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 131750 [details] [diff] [review]
revised Patch

>+  window.openDialog("chrome://messenger/content/junkMail.xul", "",
>+                    "chrome,resizable=no,modal,dialog=no", args);
dialog=no does something odd (breaks dependency?).

>@@ -2209,5 +2210,3 @@
>   else
>     window.openDialog(chromeURL, "", "chrome,resizable,status,centerscreen,dialog=no", args);
> }
>-
>-

Let's not have this change in the next patch :-)
Attachment #131750 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attachment #131750 - Attachment is obsolete: true
Attachment #131762 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 131762 [details] [diff] [review]
Final patch (I hope so)

Ok, that works fine now.
Attachment #131762 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #131762 - Flags: superreview?(bienvenu)
Comment on attachment 131762 [details] [diff] [review]
Final patch (I hope so)

sr=bienvenu
Attachment #131762 - Flags: superreview+
Attachment #131762 - Flags: superreview?(bienvenu)
The fix was checked in by Neil.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: