Closed Bug 296335 Opened 19 years ago Closed 19 years ago

setting maxWidth, minWidth properties (from javascript) doesn't work

Categories

(Core :: XUL, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: velcrospud, Assigned: mrbkap)

Details

(Keywords: fixed1.8, regression, testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050531 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050531 Firefox/1.0+

element.minWidth = 50;
or 
element.maxWidth = 50;
doesn't do anything

Reproducible: Always

Steps to Reproduce:
Attached file Quick testcase
confirmed with linux trunk 2005050601.  The bug started showing up between linux
trunk 2004091705 and 2004091806, so probably exposed by bug 296265

==> xul
Status: UNCONFIRMED → NEW
Component: Layout → XP Toolkit/Widgets: XUL
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
QA Contact: layout → xptoolkit.xul
Keywords: regression
Summary: maxWidth minWidth don't work from javascript → setting maxWidth, minWidth properties (from javascript) doesn't work
What bug number did you mean?  That one doesn't seem right.
right.  it was bug 253364
Flags: blocking-aviary1.5?
Flags: blocking1.8b4?
Flags: blocking-aviary1.5?
Flags: blocking-aviary1.0.7+
Flags: blocking-aviary1.0.7+
Flags: blocking1.8b4? → blocking1.8b4+
DBaron - can you take a look?
Assignee: nobody → dbaron
Blake - can you take a look since DBaron is currently out?
Assignee: dbaron → mrbkap
It looks like this is exactly what we were doing before (simply calling
MarkDirty for these attributes) since we don't hit any of the inner
if-statements in this block.
Attachment #193478 - Flags: superreview?(bzbarsky)
Attachment #193478 - Flags: review?(bzbarsky)
Status: NEW → ASSIGNED
Comment on attachment 193478 [details] [diff] [review]
add (min|max)(Width|Height) to the MarkDirty path

Make those nice || line up with the rest of them, and r+sr=bzbarsky
Attachment #193478 - Flags: superreview?(bzbarsky)
Attachment #193478 - Flags: superreview+
Attachment #193478 - Flags: review?(bzbarsky)
Attachment #193478 - Flags: review+
Comment on attachment 193478 [details] [diff] [review]
add (min|max)(Width|Height) to the MarkDirty path

This is a safe fix to squish a regression.
Attachment #193478 - Flags: approval1.8b4?
Attachment #193478 - Flags: approval1.8b4? → approval1.8b4+
Fix checked in to MOZILLA_1_8_BRANCH and trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: