mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix padding on tables. This fixes the TOC on wikipedia pages.
Ref: #2554
This commit is contained in:
parent
b11a110e85
commit
fd176d5387
5 changed files with 79 additions and 12 deletions
|
@ -229,9 +229,13 @@ impl Flow for TableFlow {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
let fragment_intrinsic_inline_sizes = self.block_flow.fragment.intrinsic_inline_sizes();
|
||||
self.block_flow.base.intrinsic_inline_sizes.minimum_inline_size = min_inline_size;
|
||||
self.block_flow.base.intrinsic_inline_sizes.preferred_inline_size =
|
||||
geometry::max(min_inline_size, pref_inline_size);
|
||||
self.block_flow.base.intrinsic_inline_sizes.surround_inline_size =
|
||||
fragment_intrinsic_inline_sizes.surround_inline_size;
|
||||
}
|
||||
|
||||
/// Recursively (top-down) determines the actual inline-size of child contexts and fragments. When
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue