fix: lifetime
This commit is contained in:
parent
7e00febc4d
commit
e03da6380d
1 changed files with 3 additions and 3 deletions
|
|
@ -48,10 +48,10 @@ impl CosmicAppletHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO popup container which tracks the size of itself and requests the popup to resize to match
|
// TODO popup container which tracks the size of itself and requests the popup to resize to match
|
||||||
pub fn popup_container<Message: 'static>(
|
pub fn popup_container<'a, Message: 'static>(
|
||||||
&self,
|
&self,
|
||||||
content: impl Into<Element<'static, Message, Renderer>>,
|
content: impl Into<Element<'a, Message, Renderer>>,
|
||||||
) -> Container<Message, Renderer>
|
) -> Container<'a, Message, Renderer>
|
||||||
{
|
{
|
||||||
let (valign, halign) = match self.anchor {
|
let (valign, halign) = match self.anchor {
|
||||||
PanelAnchor::Left => (Vertical::Center, Horizontal::Left),
|
PanelAnchor::Left => (Vertical::Center, Horizontal::Left),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue