def truncate content  #:nodoc:
      #maxlen = @maxlen || @width-2
      _maxlen = @maxlen || @width-@internal_width
      _maxlen = @width-@internal_width if _maxlen > @width-@internal_width
      _maxlen -= @left_margin
      if !content.nil? 
        cl = content.length
        if cl > _maxlen # only show maxlen
          @longest_line = cl if cl > @longest_line
          ## taking care of when scrolling is needed but longest_line is misreported
          # So we scroll always and need to check 2013-03-06 - 00:09 
          #content.replace content[@pcol..@pcol+_maxlen-1] 
          content.replace(content[@pcol..@pcol+maxlen-1] || " ")
        else
          #content.replace content[@pcol..-1] if @pcol > 0
          content.replace(content[@pcol..-1]||" ") if @pcol > 0 
        end
      end
      content
    end
def truncate content  #:nodoc:
      #maxlen = @maxlen || @width-2
      _maxlen = @maxlen || @width-@internal_width
      _maxlen = @width-@internal_width if _maxlen > @width-@internal_width
      _maxlen -= @left_margin
      if !content.nil? 
        cl = content.length
        if cl > _maxlen # only show maxlen
          @longest_line = cl if cl > @longest_line
          ## taking care of when scrolling is needed but longest_line is misreported
          # So we scroll always and need to check 2013-03-06 - 00:09 
          #content.replace content[@pcol..@pcol+_maxlen-1] 
          content.replace(content[@pcol..@pcol+maxlen-1] || " ")
        else
          #content.replace content[@pcol..-1] if @pcol > 0
          content.replace(content[@pcol..-1]||" ") if @pcol > 0 
        end
      end
      content
    end
Truncates data to fit into display area.
  Copied from listscrollable since we need to take care of left_margin
  2011-10-6 This may need to be reflected in listbox and others FIXME