docs: def set_focus_to_state_model(self, state_m, ratio_requested=0.8):
          """ Focus a state view of respective state model
          :param rafcon.gui.model.state state_m: Respective state model of state view to be focused
          :param ratio_requested: Minimum ratio of the screen which is requested, so can be more
          :return:
          """
          state_machine_m = self.model
          state_v = self.canvas.get_view_for_model(state_m)
          if state_v is None:
              logger.warning('There is no view for state model {0}'.format(state_m))
          self.move_item_into_viewport(state_v)
          # check_relative size in view and call it again if the state is still very small
          state_v = self.canvas.get_view_for_model(state_machine_m.root_state)
          state_size = self.view.editor.get_matrix_i2v(state_v).transform_distance(state_v.width, state_v.height)
          viewport_size = self.view.editor.get_allocation().width, self.view.editor.get_allocation().height
          if state_size[0] < ratio_requested*viewport_size[0] and state_size[1] < ratio_requested*viewport_size[1]:
              self.set_focus_to_state_model(state_m, ratio_requested)