fn update_actual_max(&mut self, screen_size: Vec2) {
        self.actual_max = self.dialog.max.min(screen_size.x);
        let max_index = coord::to_index(self.actual_max).saturating_sub(1);
        self.cursor = self.cursor.min(max_index);
        self.buffer.truncate(coord::to_index(self.actual_max));
    }
/// Updates the actual maximum length for the buffer, given a screen size.
Updates the actual maximum length for the buffer, given a screen size.
Updates the actual maximum length for the buffer given a screen size .
fn update_actual_max(&mut self, screen_size: Vec2) {
        self.actual_max = self.dialog.max.min(screen_size.x);
        let max_index = coord::to_index(self.actual_max).saturating_sub(1);
        self.cursor = self.cursor.min(max_index);
        self.buffer.truncate(coord::to_index(self.actual_max));
    }
fn update_actual_max ( & mut self , screen_size : Vec2 ) { self . actual_max = self . dialog . max . min ( screen_size . x ) ; let max_index = coord :: to_index ( self . actual_max ) . saturating_sub ( 1 ) ; self . cursor = self . cursor . min ( max_index ) ; self . buffer . truncate ( coord :: to_index ( self . actual_max ) ) ; }
Updates the actual maximum length for the buffer, given a screen size.
Updates the actual maximum length for the buffer given a screen size .
&mut self
screen_size
Vec2
&mut self
screen_size
Vec2