Closed Bug 292370 Opened 20 years ago Closed 20 years ago

Gmail - Compose mail layout is a mess

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: Peter6, Assigned: roc)

References

Details

(Keywords: regression)

Attachments

(7 files, 2 obsolete files)

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050429
Firefox/1.0+

repro:
1. Open FF
2. Open Gmail
3. Press Compose mail
it's a mess

regressed today
Attached image screenshot
Regression from bug 240276?
Is this pre or post bug 290377? I think that would be a likely candidate.
(In reply to comment #3)
> Is this pre or post bug 290377? I think that would be a likely candidate.

pre, this is with the 20050429 - 0730PDT build

Ouch, quite a few layout checkins during that period. CC'ing roc and bz, seeing
as they're responsible for most of them.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
A minimized testcase would be useful here :-)
Attached image image for testcase
reduced testcase next
Attached file testcase
in the
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050428
Firefox/1.0+ build the images line up

in the 
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050429
Firefox/1.0+ build they spread out
Attached file simpler testcase
The problem appears to be with overflow: auto. In previous builds, it would
hide the extra content and collapse it so that the buttons appear side by side,
but with current builds, it only hides the image contents, but the "hidden"
image still takes up all the space it took when not hidden.
Attachment #182223 - Attachment filename: gmail.html → gmail2.html
Attachment #182223 - Attachment is patch: false
Attachment #182223 - Attachment mime type: text/plain → text/html
*** Bug 292465 has been marked as a duplicate of this bug. ***
Attached file next testcase
(In reply to comment #10)
> The problem appears to be with overflow: auto. In previous builds, it would
> hide the extra content and collapse it so that the buttons appear side by
side,
> but with current builds, it only hides the image contents, but the "hidden"
> image still takes up all the space it took when not hidden.
It actually only takes the remaining space of the image, not the full length of
the strip.
->?1.8b2
->?1.1
Flags: blocking1.8b2?
Flags: blocking-aviary1.1?
Attached patch fix (obsolete) — Splinter Review
The MEW and max-width need to be adjusted for the element's style.
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #182360 - Flags: superreview?(dbaron)
Attachment #182360 - Flags: review?(dbaron)
Comment on attachment 182360 [details] [diff] [review]
fix

This should also account for min-width and max-width in
AdjustIntrinsicContentWidthForStyle.  You should probably use the values from
the style system.  With that, r+sr=dbaron.
Attachment #182360 - Flags: superreview?(dbaron)
Attachment #182360 - Flags: superreview+
Attachment #182360 - Flags: review?(dbaron)
Attachment #182360 - Flags: review+
I just applied the current patch to my source locally and did a build. It does
NOT fix the problem. Maybe the addition of dbaron's suggestions will?
Did it fix the testcases here?
Attached patch fix #2Splinter Review
OK, this adds code to handle min/max-width as well. But I had to break
intrinsic-min-width and intrinsic-width into separate functions because now
they have to be handled differently. I'm not sure what to do with
intrinsic-width and percentage widths, so I'm not do anything there (I don't
think any of our code does anything special there). This does fix gmail for me.
Attachment #182360 - Attachment is obsolete: true
Attachment #182368 - Flags: superreview?(dbaron)
Attachment #182368 - Flags: review?(dbaron)
(In reply to comment #17)
> Did it fix the testcases here?

If the icons are supposed to be directly next to each other in the test cases,
then no, none of them are fixed. All three still have large gaps between the icons.
There are supposed to be some gaps between the icons. Anyway, fix #2 gives
identical output to FF1.0.1 in these testcases and gmail.
Attached image What I'm seeing (obsolete) —
Just applied patch #2 and did a new build. This is what I'm seeing at GMail.
I suspect you're not applying and building properly.
(In reply to comment #22)
> I suspect you're not applying and building properly.

Patch definitely applied OK (I've opened up the three source files and manually
confirmed that the changes were made).

I just cleared out my build directory and am doing a build everything, so we'll
see how it goes.
Any idea why I'd be getting this error now when I try to compile?
---------------------------
m:/mozilla\mozilla\layout\generic\nsGfxScrollFrame.cpp(101) : warning C4355:
'this' : used in base member initializer list
m:/mozilla\mozilla\layout\generic\nsGfxScrollFrame.cpp(423) : error C2039:
'LeftRight' : is not a member of 'nsMargin'
        ../../dist\include\gfx\nsMargin.h(44) : see declaration of 'nsMargin'
m:/mozilla\mozilla\layout\generic\nsGfxScrollFrame.cpp(426) : error C2039:
'LeftRight' : is not a member of 'nsMargin'
        ../../dist\include\gfx\nsMargin.h(44) : see declaration of 'nsMargin'
m:/mozilla\mozilla\layout\generic\nsGfxScrollFrame.cpp(434) : error C2039:
'LeftRight' : is not a member of 'nsMargin'
        ../../dist\include\gfx\nsMargin.h(44) : see declaration of 'nsMargin'
m:/mozilla\mozilla\layout\generic\nsGfxScrollFrame.cpp(437) : error C2039:
'LeftRight' : is not a member of 'nsMargin'
        ../../dist\include\gfx\nsMargin.h(44) : see declaration of 'nsMargin'
m:/mozilla\mozilla\layout\generic\nsGfxScrollFrame.cpp(871) : warning C4355:
'this' : used in base member initializer list
make[4]: *** [nsGfxScrollFrame.obj] Error 2
make[4]: Leaving directory `/cygdrive/m/mozilla/mozilla/foxbuild/layout/generic'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/m/mozilla/mozilla/foxbuild/layout'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/cygdrive/m/mozilla/mozilla/foxbuild'
make[1]: *** [alldep] Error 2
make[1]: Leaving directory `/cygdrive/m/mozilla/mozilla/foxbuild'
make: *** [alldep] Error 2
Sorry, I forgot to attach this other diff (very simple helper functions in
nsMargin).
Confirming that fix #2 + the extra chunk for fix #2 builds OK and fixes the
GMail formatting.
Attachment #182371 - Attachment is obsolete: true
Attachment #182368 - Flags: superreview?(dbaron)
Attachment #182368 - Flags: superreview+
Attachment #182368 - Flags: review?(dbaron)
Attachment #182368 - Flags: review+
Comment on attachment 182368 [details] [diff] [review]
fix #2

fix this serious layout regression...
Attachment #182368 - Flags: approval1.8b2?
Comment on attachment 182368 [details] [diff] [review]
fix #2

a=mkaply
Attachment #182368 - Flags: approval1.8b2? → approval1.8b2+
Blocks: 292791
checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Blocks: 292727
Flags: blocking1.8b2?
Flags: blocking1.8b2+
Flags: blocking-aviary1.1?
Verified FIXED using build 2005-05-08-05 on Windows XP Seamonkey trunk.
Status: RESOLVED → VERIFIED
Depends on: 293504
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: