(self, rowidx, col)
return pos
Get pos at col of row when cursor upped from below row
Get pos at col of row when cursor upped from below row
Get pos at col of row when cursor upped from below row
def get_pos_above(self, rowidx, col):
        """Get pos at col of row when cursor upped from below row"""

        row = self.rows[rowidx]
        pos = self._getpos_fromrowcol(row, col)

        # Return next pos if the pos start at a row above
        if row.cols:
            if (row.positions[0] == pos) and (row.intervals[0] != 0):
                nextpos = self.document.get_nextpos(pos)
                if nextpos < row.positions[-1]:
                    return nextpos

        return pos
def get_pos_above ( self , rowidx , col ) : row = self . rows [ rowidx ] pos = self . _getpos_fromrowcol ( row , col ) # Return next pos if the pos start at a row above if row . cols : if ( row . positions [ 0 ] == pos ) and ( row . intervals [ 0 ] != 0 ) : nextpos = self . document . get_nextpos ( pos ) if nextpos < row . positions [ - 1 ] : return nextpos return pos