DescriptionMake NineImagePainter stay within the bounds rect.
This adds a check to handle the case where the bounds rect passed to Paint() is
too small to fully contain the border pieces. In this case we skip the border
and fill the entire bounds rect with the center image.
This fixes visual glitches in scrollbar painting when the track is short (we
incorrectly paint a few pixels of track on top of the stepper buttons).
BUG=536234
Committed: https://crrev.com/bc49adcb8ffd054ed493b7025997d53fbfe27261
Cr-Commit-Position: refs/heads/master@{#351201}
Patch Set 1 #Patch Set 2 : exclude border if not enough room for it #
Messages
Total messages: 11 (2 generated)
|