Codechange: Make GetCurrentRect() conform to usual Rect bounds, and reuse it. #9205
Motivation / Problem
Similar code to GetCurrentRect() is already repeated in other locations, but Rect's right and bottom should refer to the edge of the widget, not the outside.
GetCurrentRect() is tweaked and used in place of some of the more obvious uses.
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.