zng_wgt_scroll

Static AUTO_HIDE_EXTRA_VAR

source
pub static AUTO_HIDE_EXTRA_VAR: ContextVar<SideOffsets>
Expand description

Extra space added to the viewport auto-hide rectangle.

The scroll sets the viewport plus these offsets as the FrameBuilder::auto_hide_rect, this value is used for optimizations from the render culling to lazy widgets.

By default is 500.dip().min(100.pct()), one full viewport extra capped at 500.