Skip to main content

set_content_size

Function set_content_size 

Source
pub fn set_content_size(width: u32, height: u32)
Expand description

Set the virtual size of the canvas content. If the content is larger than the screen/viewport dimensions, the browser host will automatically render interactive overlay scrollbars and track absolute scroll coordinates.