Closed
Bug 301026
Opened 19 years ago
Closed 19 years ago
{inc}Clicking on link in floated element causes the element to decrease its width
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: tbertels+bugzilla, Assigned: roc)
References
()
Details
(Keywords: regression, testcase)
Attachments
(2 files, 1 obsolete file)
465 bytes,
text/html
|
Details | |
1.61 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8b4) Gecko/20050715 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8b4) Gecko/20050715 Firefox/1.0+ Noticed too with Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8b4) Gecko/20050715 Firefox/1.0+, didn't test it with other versions. Reproducible: Always Steps to Reproduce: 1.Scroll down in linked page to the images 2.Click (right or left) on one of the images (which open a pop up window) Actual Results: The text is wrapped at each click until each line isn't larger than the image. Expected Results: No modification of the layout. You can notice on this other page (http://extensions.geckozone.org/AllInOneSearchButton) that it's possible to reset the layout (which changed by clicking on the image of the right) by clicking on one of the other images (the left or center one, whos text isn't larger than the image).
Reporter | ||
Updated•19 years ago
|
Version: unspecified → Trunk
Updated•19 years ago
|
Component: General → Layout
Keywords: regression,
testcase
Product: Firefox → Core
QA Contact: general → layout
Comment 1•19 years ago
|
||
Updated•19 years ago
|
Summary: Text of an image with onclick pop up link wraps each time the image is clicked → Clicking on link in floated element causes the element to decrease its width
Comment 2•19 years ago
|
||
Note that it's the floated div width that decreases for each click
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•19 years ago
|
||
actually, this regressed from (or was at least exposed by) bug 270804
Comment 4•19 years ago
|
||
Updated•19 years ago
|
Attachment #189543 -
Attachment is obsolete: true
Assignee | ||
Comment 5•19 years ago
|
||
Pretty simple ... we need to include the right margin in the block's XMost when we're recovering state. We do this inside ReflowBlockFrame already for the blocks we reflow. That actually adds it to the *bounds* which is pretty bogus ... This will go away with reflow-refactor
Assignee: nobody → roc
Status: NEW → ASSIGNED
Attachment #189739 -
Flags: superreview?(dbaron)
Attachment #189739 -
Flags: review?(dbaron)
Why is it bogus to add it to the line's bounds? (It makes sense to me.) And if it's added to the line's bounds, why do you need to add it again here? and why wouldn't you need to do the same in PostPlaceLine for consistency?
Assignee | ||
Comment 7•19 years ago
|
||
(In reply to comment #6) > Why is it bogus to add it to the line's bounds? (It makes sense to me.) Because the line bounds are the line's border-box in all cases (assuming inlines are wrapped in an anonymous line box with no border/padding) except that sometimes the right edge includes the right margin. > And if it's added to the line's bounds, why do you need to add it again here? Every line that gets the right margin added during SHRINKWRAP reflow gets reflowed again during ComputeFinalSize, without SHRINKWRAP, so the bounds are recomputed without the right margin. In other words, the right margin addition is only temporary. > and why wouldn't you need to do the same in PostPlaceLine for consistency? PostPlaceLine is only called from PlaceLine and ReflowBlockFrame. In the latter case, the right margin has already been added to the bounds. In the former case, PlaceLine is only for lines of inlines, which can't have a right margin.
(In reply to comment #7) > > Why is it bogus to add it to the line's bounds? (It makes sense to me.) > > Because the line bounds are the line's border-box in all cases (assuming inlines > are wrapped in an anonymous line box with no border/padding) except that > sometimes the right edge includes the right margin. I still don't follow. For inline lines there's no distinction, and for block lines it seems like we may as well use the margin box for horizontal aspects -- presumably we do already for margin-left.
Assignee | ||
Comment 9•19 years ago
|
||
(In reply to comment #8) > I still don't follow. For inline lines there's no distinction, and for block > lines it seems like we may as well use the margin box for horizontal aspects -- > presumably we do already for margin-left. We don't. The bounds.x is the block's border-edge. I would also argue that having the bounds be the margin edges horizontally and the border edges vertically is already borderline-bogus :-) I actually did start work on a patch along those lines --- but less bogusly, removing mBounds in favour of mBorderBoxTop, mBorderBoxHeight, mMarginBoxLeft, mMarginBoxWidth, but it got too invasive for this stage of the game.
Attachment #189739 -
Flags: superreview?(dbaron)
Attachment #189739 -
Flags: superreview+
Attachment #189739 -
Flags: review?(dbaron)
Attachment #189739 -
Flags: review+
Assignee | ||
Comment 10•19 years ago
|
||
Comment on attachment 189739 [details] [diff] [review] fix fix for incremental reflow regression
Attachment #189739 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #189739 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 11•19 years ago
|
||
checked in
Assignee | ||
Updated•19 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Verified FIXED using the testcase at https://bugzilla.mozilla.org/attachment.cgi?id=189595 with build 2005-08-10-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
•