float: don't shortcut title rendering when rect is empty
This commit is contained in:
parent
4fb7a859dc
commit
3f0e99d04c
1 changed files with 0 additions and 8 deletions
|
|
@ -205,13 +205,8 @@ impl FloatNode {
|
||||||
true => theme.colors.focused_title_text.get(),
|
true => theme.colors.focused_title_text.get(),
|
||||||
false => theme.colors.unfocused_title_text.get(),
|
false => theme.colors.unfocused_title_text.get(),
|
||||||
};
|
};
|
||||||
let bw = theme.sizes.border_width.get();
|
|
||||||
let font = theme.font.get();
|
let font = theme.font.get();
|
||||||
let title = self.title.borrow_mut();
|
let title = self.title.borrow_mut();
|
||||||
let pos = self.position.get();
|
|
||||||
if pos.width() <= 2 * bw {
|
|
||||||
return on_completed.event();
|
|
||||||
}
|
|
||||||
let ctx = match self.state.render_ctx.get() {
|
let ctx = match self.state.render_ctx.get() {
|
||||||
Some(c) => c,
|
Some(c) => c,
|
||||||
_ => return on_completed.event(),
|
_ => return on_completed.event(),
|
||||||
|
|
@ -234,9 +229,6 @@ impl FloatNode {
|
||||||
width = (width as f64 * scale).round() as _;
|
width = (width as f64 * scale).round() as _;
|
||||||
scalef = Some(scale);
|
scalef = Some(scale);
|
||||||
}
|
}
|
||||||
if th == 0 || width == 0 {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
tex.schedule_render(
|
tex.schedule_render(
|
||||||
on_completed.clone(),
|
on_completed.clone(),
|
||||||
1,
|
1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue