@@ -61,7 +61,7 @@ pub fn show_tooltip_at_pointer<R>(
61
61
widget_id : Id ,
62
62
add_contents : impl FnOnce ( & mut Ui ) -> R ,
63
63
) -> Option < R > {
64
- Tooltip :: new ( ctx. clone ( ) , parent_layer, widget_id, PopupAnchor :: Pointer )
64
+ Tooltip :: always_open ( ctx. clone ( ) , parent_layer, widget_id, PopupAnchor :: Pointer )
65
65
. gap ( 12.0 )
66
66
. show ( add_contents)
67
67
. map ( |response| response. inner )
@@ -78,7 +78,7 @@ pub fn show_tooltip_for<R>(
78
78
widget_rect : & Rect ,
79
79
add_contents : impl FnOnce ( & mut Ui ) -> R ,
80
80
) -> Option < R > {
81
- Tooltip :: new ( ctx. clone ( ) , parent_layer, widget_id, * widget_rect)
81
+ Tooltip :: always_open ( ctx. clone ( ) , parent_layer, widget_id, * widget_rect)
82
82
. show ( add_contents)
83
83
. map ( |response| response. inner )
84
84
}
@@ -94,7 +94,7 @@ pub fn show_tooltip_at<R>(
94
94
suggested_position : Pos2 ,
95
95
add_contents : impl FnOnce ( & mut Ui ) -> R ,
96
96
) -> Option < R > {
97
- Tooltip :: new ( ctx. clone ( ) , parent_layer, widget_id, suggested_position)
97
+ Tooltip :: always_open ( ctx. clone ( ) , parent_layer, widget_id, suggested_position)
98
98
. show ( add_contents)
99
99
. map ( |response| response. inner )
100
100
}
0 commit comments