Do you set the ScrollBars property if the TextBox is Multiline?

Updated by Igor Goldobin 1 year ago. See history

123

If a TextBox has Multiline set to true, then the ScrollBars property should be set to "Both" or at least "Vertical".
<imageEmbed
  alt="Image"
  size="large"
  showBorder={false}
  figureEmbed={{
    preset: "badExample",
    figure: 'Bad example - Multiline TextBox without "Vertical" scroll bar.',
    shouldDisplay: true
  }}
  src="/uploads/rules/set-the-scrollbars-property-if-the-textbox-is-multiline/multiline_bad.gif"
/>

<figureEmbed figureEmbed={{
  preset: "goodExample",
  figure: '<imageEmbed
  alt="Image"
  size="large"
  showBorder={false}
  figureEmbed={{
    preset: "default",
    figure: \'Good example - Multiline TextBox with "Vertical" scroll bar\',
    shouldDisplay: true
  }}
  src="/uploads/rules/set-the-scrollbars-property-if-the-textbox-is-multiline/multiline_good.gif"
/>',
  shouldDisplay: true
} } />


<figureEmbed figureEmbed={{
  preset: "goodExample",
  figure: '<imageEmbed
  alt="Image"
  size="large"
  showBorder={false}
  figureEmbed={{
    preset: "default",
    figure: \'Good example - Set the ScrollBars property to "Vertical" if the TextBox is Multiline\',
    shouldDisplay: true
  }}
  src="/uploads/rules/set-the-scrollbars-property-if-the-textbox-is-multiline/multilinetextbox.gif"
/>',
  shouldDisplay: true
} } />


We have a program called [SSW Code Auditor](https://ssw.com.au/ssw/CodeAuditor/) to check for this rule.
acknowledgements
related rules