Closed
Bug 331562
Opened 15 years ago
Closed 14 years ago
lost padding-left in overflowing scrollable RTL blocks
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
INVALID
People
(Reporter: hsaito54, Assigned: mkaply)
References
(Blocks 1 open bug)
Details
(Keywords: rtl, testcase)
Attachments
(2 files)
1.39 KB,
text/html
|
Details | |
4.09 KB,
patch
|
Details | Diff | Splinter Review |
Padding-left is disregarded in overflowing scrollable RTL blocks, although padding-right is displayed in overflowing scrollable LTR blocks.
Reporter | ||
Comment 1•15 years ago
|
||
I think that padding-left on testcase should be displayed. The reason is illustrated as follows. If padding-left is |a|, content-width is |b| and available-width is |c|, |d| is overflowing-width. |--a-->----------b---------> |-------c-------->----d----> Current reflowing is illustrated as follows, in the result, padding-left is lost. |-------c--------> |--a--> <----d---- ----------b---------> I think that the reflowing should be done as follows. <----d----|-------c--------> --a-->----------b--------->
Reporter | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
What in the spec says this should work? I can't find anything, although it does work for LTR. The patch looks wrong. You shouldn't need to add piles of code to fix this.
Comment 4•15 years ago
|
||
(Where is the code that makes this work for LTR?)
Reporter | ||
Comment 5•15 years ago
|
||
(In reply to comment #4) > (Where is the code that makes this work for LTR?) Following change removes padding-right in overflowing LTR blocks. +++ nsBlockFrame.cpp Sat Mar 25 22:28:46 2006 @@ -1260,17 +1260,17 @@ nsBlockFrame::ComputeFinalSize(const nsH if (NS_BLOCK_SPACE_MGR & mState) { // Include the space manager's state to properly account for the // extent of floated elements. nscoord xmost; if (aReflowState.mSpaceManager->XMost(xmost) && computedWidth < xmost) computedWidth = xmost; } - computedWidth += borderPadding.right; + //computedWidth += borderPadding.right; } if (aState.GetFlag(BRS_COMPUTEMAXELEMENTWIDTH)) { // Add in border and padding dimensions to already computed // max-element-width values. maxElementWidth = aState.mMaxElementWidth + borderPadding.left + borderPadding.right; }
Reporter | ||
Comment 6•14 years ago
|
||
Padding-right is not already displayed in overflowing scrollable LTR blocks by the fix for Bug 300030. I think this report should be closed.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Comment 7•13 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in
before you can comment on or make changes to this bug.
Description
•