Skip to content

Commit

Permalink
Improve the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Mar 9, 2020
1 parent d5e1be8 commit 6167ebb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/cwm/src/lib/cwm/common_widgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ class RichText < AbstractWidget

# Determines if the vertical scroll must be kept after updating the content
#
# @note Useful only to keep the sense of continuity when redrawing basically with the same text
#
# Keeping the vertical scroll after changing the value is mostly intended to be used after a
# redraw because of a user action. However, using it after changing the content noticeably
# (e.g., displaying different product descriptions), will look like a randomly positioned
# vertical scroll.
#
# @return [Boolean] true if the vertical scroll must be kept; false otherwise
def keep_scroll?
false
Expand Down

0 comments on commit 6167ebb

Please sign in to comment.