Method: CDK::ENTRY#setPositionToEnd

Defined in:
lib/cdk/components/entry.rb

#setPositionToEndObject



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/cdk/components/entry.rb', line 181

def setPositionToEnd
  if @info.size >= @field_width
    if @info.size < @max
      char_count = @field_width - 1
      @left_char = @info.size - char_count
      @screen_col = char_count
    else
      @left_char = @info.size - @field_width
      @screen_col = @info.size - 1
    end
  else
    @left_char = 0
    @screen_col = @info.size
  end
end