If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Panels get 'width' and 'height' attributes when they shouldn't, making the panel size static

NEW
Unassigned

Status

()

Core
XUL
5 years ago
5 years ago

People

(Reporter: Phil, Unassigned)

Tracking

17 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

1.62 KB, application/vnd.mozilla.xul+xml
Details
(Reporter)

Description

5 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20121128204232

Steps to reproduce:

Added content to a panel element until it no longer fit completely on the screen.


Actual results:

The panel resized dynamically as expected until it was rendered partially off screen, then height and width attributes were added and the panel stopped resizing.


Expected results:

Height and width attributes should not be added, and the element should resize to fit it's content.
(Reporter)

Comment 1

5 years ago
Created attachment 692792 [details]
Testcase

Testcase to demonstrate the issue.

Load the xul file in Firefox 17+ (I've only tested on Windows).

Click the Add button multiple times until the panel content goes below the bottom of the screen.

Click the Remove button until the content is gone.

Compare to FF16.

Updated

5 years ago
Attachment #692792 - Attachment mime type: application/octet-stream → application/vnd.mozilla.xul+xml
FTR, see bug 852775 comment 4 which implies the underlying bug is that the 'width' and 'height' attributes are being added unconditionally, when they should only be added when the resize is as a result of the user explicitly resizing.

Confirming, updating the title and adding the panel-guru to CC.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Panel element's size becomes static. → Panels get 'width' and 'height' attributes when they shouldn't, making the panel size static
You need to log in before you can comment on or make changes to this bug.