(self)
Resize wnds
Resize wnds
Resize wnds
def on_console_resized(self):
        """Resize wnds"""

        rc_input, rects = self.input.document.mode.resize_inputs(
            self.input, self.inputs)
        l, t, r, b = rc_input

        if rects:
            t = min(t, rects[0][1])
            b = max(b, rects[-1][3])

        if self.input.document.mode.border:
            l -= 1
            t -= 1
            r += 1
            b += 1

        self.set_rect(l, t, r, b)

        for w, (l, t, r, b) in zip(self.inputs, rects):
            w.set_rect(l, t, r, b)

        self.input.set_rect(*rc_input)
def on_console_resized ( self ) : rc_input , rects = self . input . document . mode . resize_inputs ( self . input , self . inputs ) l , t , r , b = rc_input if rects : t = min ( t , rects [ 0 ] [ 1 ] ) b = max ( b , rects [ - 1 ] [ 3 ] ) if self . input . document . mode . border : l -= 1 t -= 1 r += 1 b += 1 self . set_rect ( l , t , r , b ) for w , ( l , t , r , b ) in zip ( self . inputs , rects ) : w . set_rect ( l , t , r , b ) self . input . set_rect ( * rc_input )