Hello! This is my first post here!
![Smiley :)](https://www.sfml-dev.org/forums/Smileys/default/smiley.gif)
I am experiencing a problem retrieving the local (or global) bounds for a sf::RectangleShape. I create a rectangle with a height of 19 and an outline thickness of 2. The local bounds then displays a height of 23 correctly. However, if I use the setSize function and give it the same height of 19 then the local bounds displays a height of 19, disregarding the outline thickness of 2. However, the outline thickness is still set to 2. The function appears to be ignoring the outline thickness in the bounds calculation.
mItemButton.setOutlineThickness(2);
mItemButton.setSize(sf::Vector2f(100, 19));
mItemButton.setOrigin(-mItemButton.getOutlineThickness(), -mItemButton.getOutlineThickness());
// Inside bounds height = 19 (Correct)
// Bounds height = 23 (Correct)
mItemButton.setSize(sf::Vector2f(0, 19));
// Inside bounds height = 19 (Correct)
// Bounds height = 19 (Incorrect)
Any ideas of what the problem could be?
UPDATE: Well, I found that changing the shape's width to 0 causes the problem. I'm not sure if that's a bug or intentional
![Undecided :-\](https://www.sfml-dev.org/forums/Smileys/default/undecided.gif)