def click_in_text(sender, x, y)
      publish :focus unless focused?

      # Move caret to position the user clicks on.
      index = text_index_at_position x, y
      self.caret_position = @text_input.selection_start = [index, @stripped_text.length].min if index

      nil
    end
def click_in_text(sender, x, y)
      publish :focus unless focused?

      # Move caret to position the user clicks on.
      index = text_index_at_position x, y
      self.caret_position = @text_input.selection_start = [index, @stripped_text.length].min if index

      nil
    end
@param (see Element#initialize)

 @option (see Element#initialize)
 @option options [String] :text ("")
 @option options [Integer] :height Sets both min and max height at once.
 @option options [Integer] :min_height
 @option options [Integer] :max_height (Infinite)
 @option options [Number] :line_spacing (0)
 @option options [Boolean] :editable (true)
 @return [nil]