Add tooltip to follow collaborators

This commit is contained in:
Antonio Scandurra 2022-06-15 17:01:48 +02:00
parent 8a146e49ca
commit 516bd13474
6 changed files with 86 additions and 72 deletions

View file

@ -157,7 +157,7 @@ pub trait Element {
FlexItem::new(self.boxed()).float()
}
fn with_tooltip<T: View>(
fn with_tooltip<Tag: 'static, T: View>(
self,
id: usize,
text: String,
@ -168,7 +168,7 @@ pub trait Element {
where
Self: 'static + Sized,
{
Tooltip::new(id, text, action, style, self.boxed(), cx)
Tooltip::new::<Tag, T>(id, text, action, style, self.boxed(), cx)
}
}