mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1355 - SetNeedToCalcHasBCBorders to true when initialize nsTableFrame
In the printing preview, we create continuous table frame if table is too long to containing in a page. But the default value of NeedToCalcHasBCBorders is false which means we don't calculate HasBCBorders for continuous table frame. Thus, the border collapse is not shown when printing preview.
This commit is contained in:
parent
da0e3a828b
commit
15794686d6
1 changed files with 3 additions and 0 deletions
|
|
@ -176,6 +176,9 @@ nsTableFrame::Init(nsIContent* aContent,
|
|||
const nsStyleTableBorder* tableStyle = StyleTableBorder();
|
||||
bool borderCollapse = (NS_STYLE_BORDER_COLLAPSE == tableStyle->mBorderCollapse);
|
||||
SetBorderCollapse(borderCollapse);
|
||||
if (borderCollapse) {
|
||||
SetNeedToCalcHasBCBorders(true);
|
||||
}
|
||||
|
||||
if (!aPrevInFlow) {
|
||||
// If we're the first-in-flow, we manage the cell map & layout strategy that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue