# Rect.VerticalCenter & Rect.HorizontalCenter oddities

**URL:** <https://forum.xojo.com/t/rect-verticalcenter-rect-horizontalcenter-oddities/72045>\
**Category:** Bugs and Feature Requests\
**Created:** [August 31, 2022, 6:42pm UTC](https://forum.xojo.com/t/rect-verticalcenter-rect-horizontalcenter-oddities/72045 "2022-08-31T18:42:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wes\_Westhaver](https://forum.xojo.com/user_avatar/forum.xojo.com/wes_westhaver/32/257_2.png) [@Wes\_Westhaver](https://forum.xojo.com/u/Wes_Westhaver)\
**Post date:** [August 31, 2022, 6:42pm UTC](https://forum.xojo.com/t/rect-verticalcenter-rect-horizontalcenter-oddities/72045/1 "2022-08-31T18:42:11Z")

</div>

Today I needed to manipulate a Rect object and tried to use the VerticalCenter and HorizontalCenter properties. It appears that the VerticalCenter or HorizontalCenter properties accept only half of the value assigned to them. If I assign 100, the debugger shows a value of 50.

I dug into the Xojo bug tracker and found this entry from ten years ago:

[https://tracker.xojo.com/xojoinc/xojo/-/issues/20671](https://tracker.xojo.com/xojoinc/xojo/-/issues/20671)

I am running Xojo Version 2020 Release 2.1 under Ubuntu 18.4 Linux.

It looks like this bug lives on…
