Closed Bug 276200 Opened 20 years ago Closed 20 years ago

sizeToContent() work incorrectly when window has width and hegiht

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: surkov, Unassigned)

Details

(Whiteboard: DUP of bug 187815?)

Attachments

(1 file)

468 bytes, application/vnd.mozilla.xul+xml
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 If window has defined width and height then sizeToContent() method resizes window by the next way. Method sizeToContent() think that content has width and heigth of window. sizeToContent() should compute size of content (not window). Reproducible: Always Steps to Reproduce:
Alex, you have not provided any steps to reproduce, any code, any url, any testcase. From my understanding of your description, there are good chances this is a duplicate of bug 187815. See attachment 110727 [details]: it creates a 300w. X 150h. window which resizes to the width of viewport when calling sizeToContent(). If I'm way off, then please provide specifics and details: best would be a reduced testcase. Also, do not forget to test the problem or testcase with a recent trunk build: "be sure that you've reproduced your bug using a build released within the past three days. Our development process moves at lightning speed, and the bug you've found may already have been fixed." http://www.mozilla.org/quality/bug-writing-guidelines.html
Whiteboard: DUP of bug 187815?
Attached file test case
If you will remove width and height attribute from window then window will resized to textbox. Tested on mozilla 1.8a6.
Unfortunately I can say nothing about dublicating of my bug.
This is invalid, since "content" includes the <window> node, which has a fixed size set...
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: