Closed
Bug 292370
Opened 20 years ago
Closed 20 years ago
Gmail - Compose mail layout is a mess
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: Peter6, Assigned: roc)
References
Details
(Keywords: regression)
Attachments
(7 files, 2 obsolete files)
|
18.91 KB,
image/png
|
Details | |
|
990 bytes,
image/gif
|
Details | |
|
1.22 KB,
text/html
|
Details | |
|
586 bytes,
text/html
|
Details | |
|
1.22 KB,
text/html
|
Details | |
|
7.49 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
mkaply
:
approval1.8b2+
|
Details | Diff | Splinter Review |
|
1.53 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Regression from bug 240276?
Comment 3•20 years ago
|
||
Is this pre or post bug 290377? I think that would be a likely candidate.
| Reporter | ||
Comment 4•20 years ago
|
||
(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
| Reporter | ||
Comment 5•20 years ago
|
||
regressed between the
20050428 1230PDT build
and
20050428 1658PDT build
checkins for the period between the 2 builds
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=PhoenixTinderbox&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2005-04-28+12%3A00%3A00&maxdate=2005-04-28+16%3A00%3A00&cvsroot=%2Fcvsroot
Comment 6•20 years ago
|
||
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
| Assignee | ||
Comment 7•20 years ago
|
||
A minimized testcase would be useful here :-)
| Reporter | ||
Comment 8•20 years ago
|
||
reduced testcase next
| Reporter | ||
Comment 9•20 years ago
|
||
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
Comment 10•20 years ago
|
||
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.
Updated•20 years ago
|
Attachment #182223 -
Attachment filename: gmail.html → gmail2.html
Updated•20 years ago
|
Attachment #182223 -
Attachment is patch: false
Attachment #182223 -
Attachment mime type: text/plain → text/html
Comment 11•20 years ago
|
||
*** Bug 292465 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 12•20 years ago
|
||
(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.
| Assignee | ||
Comment 14•20 years ago
|
||
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+
Comment 16•20 years ago
|
||
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?
| Assignee | ||
Comment 17•20 years ago
|
||
Did it fix the testcases here?
| Assignee | ||
Comment 18•20 years ago
|
||
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)
Comment 19•20 years ago
|
||
(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.
| Assignee | ||
Comment 20•20 years ago
|
||
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.
Comment 21•20 years ago
|
||
Just applied patch #2 and did a new build. This is what I'm seeing at GMail.
| Assignee | ||
Comment 22•20 years ago
|
||
I suspect you're not applying and building properly.
Comment 23•20 years ago
|
||
(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.
Comment 24•20 years ago
|
||
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
| Assignee | ||
Comment 25•20 years ago
|
||
Sorry, I forgot to attach this other diff (very simple helper functions in
nsMargin).
Comment 26•20 years ago
|
||
Confirming that fix #2 + the extra chunk for fix #2 builds OK and fixes the
GMail formatting.
Updated•20 years ago
|
Attachment #182371 -
Attachment is obsolete: true
Attachment #182368 -
Flags: superreview?(dbaron)
Attachment #182368 -
Flags: superreview+
Attachment #182368 -
Flags: review?(dbaron)
Attachment #182368 -
Flags: review+
Attachment #182372 -
Flags: superreview+
Attachment #182372 -
Flags: review+
| Assignee | ||
Comment 27•20 years ago
|
||
Comment on attachment 182368 [details] [diff] [review]
fix #2
fix this serious layout regression...
Attachment #182368 -
Flags: approval1.8b2?
Comment 28•20 years ago
|
||
Comment on attachment 182368 [details] [diff] [review]
fix #2
a=mkaply
Attachment #182368 -
Flags: approval1.8b2? → approval1.8b2+
| Assignee | ||
Comment 29•20 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
FWIW, you may also be interested in seeing how I did this on the reflow branch:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/base/nsLayoutUtils.cpp&rev=3.34.4.1&mark=467-522#474
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
You need to log in
before you can comment on or make changes to this bug.
Description
•