Closed Bug 298072 Opened 19 years ago Closed 19 years ago

hidechrome window drawing problem

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8beta4

People

(Reporter: aaiyer, Assigned: aaiyer)

Details

Attachments

(3 files)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: 

There is a problem when drawing a XUL window with hidechrome enabled where the 
child window is smaller in size than a parent window container that mozilla 
draws, exhibiting in strange behaviour.

If I resize the window a resizer element, the child window restores to the 
size of the parent window and the behaviour afterwares is ok.


Reproducible: Always
Attached file A testcase.
Component: XP Toolkit/Widgets → XP Toolkit/Widgets: XUL
Attached patch patchSplinter Review
The above patch fixes it. It sets the window without chrome before the sizes 
is set, so that the client area is correctly calcualted.
I see this bug too.  Hopefully, two pair of eyes will take this bug off of
"UNCONFIRMED" status.

The "off-blit" sections of the window seem to correspond exactly to the sizes of
the titlebar and window borders for a "normal" win32 window.

Interestingly, if I set the size of my <window> element through xml attributes,
the actual OS window created is that size, but my own art only blits into a
portion of the window and the "off blit" section is along the bottom and right
edges.

However, if I set the size from CSS, my own art blits to the proper size
specified in the CSS but my OS window is larger and the "off blit" section is
still on the bottom and right.
Attachment #187265 - Flags: review?(roc)
Cc'ing people is always good.  Confirming base don mig's testimony.

/be
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 187265 [details] [diff] [review]
patch

I'll land this.
Attachment #187265 - Flags: approval1.8b4+
Assignee: jag → aaiyer
Fixed on trunk for 1.8b4
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta4
This bug seems to also happen when I call window.resizeTo, now  :(

I'll make a new entry.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: