Object horizontal and vertical measurements are swapped in tool bar
MacBook Pro (15-inch, 2018)
Processor: 2.6 GHz 6-Core Intel Core i7
Mac OS Monterey 12.0.1 (21A559)
Adobe Illustrator 26.0.2
When selecting an object, like a rectangle, the horizontal and vertical measurements in the tool bar are swapped. They appear correctly in the Transform window.
For example, a horizontal rectangle could be 7pt x 5pt, but when selected in the tool bar it shows 5 in the <--> dialog box and 7 in the vertical box.
I have restarted my computer and restarted illustrator.
See screen caps below.
As per the comment:
Illustrator allows to access dimensions of an object as well as dimensions of a live shape. In case when a shape is rotated by 90° the shape’s size values can look swapped compared to measured sizes. It’s like tilting a head. See attached images inside for clarifications.
Your rectangle shape appears to be rotated 90°. I can replicate this behavior by drawing a rectangle and then rotating it. The length & width measurements in the rectangle shape's properties report the same length and width even after being rotated. The object's H and W measurements in the same toolbar show the updated H x W values after rotation. See the screenshots I've uploaded.