We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0834734 commit 4add25eCopy full SHA for 4add25e
src/compute/float.rs
@@ -183,7 +183,17 @@ impl FloatContext {
183
clear: Clear,
184
after: Option<usize>,
185
) -> ContentSlot {
186
- self.placer.find_content_slot(min_y, containing_block_insets, clear, after)
+ if !self.has_active_floats(min_y) {
187
+ ContentSlot {
188
+ segment_id: None,
189
+ x: containing_block_insets[0],
190
+ y: min_y,
191
+ width: self.placer.bfc_width - containing_block_insets[0] - containing_block_insets[1],
192
+ height: f32::INFINITY,
193
+ }
194
+ } else {
195
+ self.placer.find_content_slot(min_y, containing_block_insets, clear, after)
196
197
}
198
199
// pub(crate) fn content_width(&self) -> f32 {
0 commit comments