pub fn fixed_scroll_to_view_handling(
        &self,
        ctx: &mut EventCtx,
        global_highlight_rect: Rect,
        source: WidgetId,
    ) {
        let global_viewport_rect = self.view_rect() + ctx.window_origin().to_vec2();
        let clipped_highlight_rect = global_highlight_rect.intersect(global_viewport_rect);

        if clipped_highlight_rect.area() > 0.0 {
            ctx.submit_notification_without_warning(SCROLL_TO_VIEW.with(clipped_highlight_rect));
        } else {
            info!("Hidden Widget({}) in unmanaged clip requested SCROLL_TO_VIEW. The request is ignored.", source.to_raw());
        }
    }
/// This method handles SCROLL_TO_VIEW by clipping the view_rect to the content rect.
///
/// The [`SCROLL_TO_VIEW`] notification is send when [`scroll_to_view`] or [`scroll_area_to_view`]
/// are called.
///
/// [`SCROLL_TO_VIEW`]: crate::commands::SCROLL_TO_VIEW
/// [`scroll_to_view`]: crate::EventCtx::scroll_to_view()
/// [`scroll_area_to_view`]: crate::EventCtx::scroll_area_to_view()
This method handles SCROLL_TO_VIEW by clipping the view_rect to the content rect.


This method handles SCROLL_TO_VIEW by clipping the view_rect to the content rect .
pub fn fixed_scroll_to_view_handling(
        &self,
        ctx: &mut EventCtx,
        global_highlight_rect: Rect,
        source: WidgetId,
    ) {
        let global_viewport_rect = self.view_rect() + ctx.window_origin().to_vec2();
        let clipped_highlight_rect = global_highlight_rect.intersect(global_viewport_rect);
        if clipped_highlight_rect.area() > 0.0 {
            ctx.submit_notification_without_warning(SCROLL_TO_VIEW.with(clipped_highlight_rect));
        } else {
            info!("Hidden Widget({}) in unmanaged clip requested SCROLL_TO_VIEW. The request is ignored.", source.to_raw());
        }
    }
pub fn fixed_scroll_to_view_handling ( & self , ctx : & mut EventCtx , global_highlight_rect : Rect , source : WidgetId , ) { let global_viewport_rect = self . view_rect ( ) + ctx . window_origin ( ) . to_vec2 ( ) ; let clipped_highlight_rect = global_highlight_rect . intersect ( global_viewport_rect ) ; if clipped_highlight_rect . area ( ) > 0.0 { ctx . submit_notification_without_warning ( SCROLL_TO_VIEW . with ( clipped_highlight_rect ) ) ; } else { info ! ( " " source to_raw ( ) ) ; } }
This method handles SCROLL_TO_VIEW by clipping the view_rect to the content rect.
This method handles SCROLL_TO_VIEW by clipping the view_rect to the content rect .
&self
ctx
&mut EventCtx
global_highlight_rect
Rect
source
WidgetId
&self
ctx
&mut EventCtx
global_highlight_rect
Rect
source
WidgetId