Closed
Bug 62987
Opened 24 years ago
Closed 24 years ago
window.sizeToContent() does not work. If called more than once on the same window the it resizes the window to desktop size.
Categories
(Core :: XUL, defect, P3)
Tracking
()
RESOLVED
INVALID
People
(Reporter: naving, Assigned: trudelle)
References
Details
Additional info :
In MailNews if you try to add a new Folder window then you may have to change
the parent folder name and since the length of the parent folder name may vary
depending upon the user's choice; therefore you have to resize the window
using the size of the content. Presently to overcome this problem I use
window.resizeTo(0,0) and then use window.sizeToContent() (May indicate where the
problem is)
Comment 1•24 years ago
|
||
I added some NS_WARNINGs and they seem to suggest an infinite loop from
nsWindow::Resize to nsWidget::OnResize and back, which a resizeTo(0, 0)
prevents.
Comment 2•24 years ago
|
||
Currently I'm getting this error on linux, both with and without sizeTo(0, 0):
Gdk-ERROR **: BadWindow (invalid Window parameter)
serial 3366 error_code 3 request_code 15 minor_code 0
Removing the sizeToContent lines "fixes" it. I wonder if I screwed something up
somewhere... Will get back on that.
Comment 3•24 years ago
|
||
Comment 4•24 years ago
|
||
I suspect the fix to bug 63224 will fix this too. Marking "depends on" for now,
though it should probably be duped.
Depends on: 63224
Reporter | ||
Updated•24 years ago
|
Assignee: clayton → trudelle
Component: HTML Element → XP Toolkit/Widgets
QA Contact: lorca → jrgm
Reporter | ||
Comment 5•24 years ago
|
||
reassigning to xptoolkit.
Comment 6•24 years ago
|
||
All the bugs dependant on this one have been marked fixed, all the linux
crashers related to sizeToContent have been fixed too. Shall we mark this fixed?
Reporter | ||
Comment 7•24 years ago
|
||
window.sizeToContent no longer used in this part of the code. So marking this
bug invalid
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•