I have come across a strange problem that may be a bug. I have reproduced the problem using the Bars Gui tutorial. In the tutorial code, I have changed the line where the window is created like this.
Code:
Gui +=window .create(Rect_LD(-D.w(), -D.h(), 0.046f, 0.6f), "Window with bars");
Here is the result when I run the tutorial, with the above change. The window is placed and sized correctly.
However if I change the width of the window to make it 0.001 smaller, I get a problem. Here is the changed code. Notice the window should now be slightly narrower.
Code:
Gui +=window .create(Rect_LD(-D.w(), -D.h(), 0.045f, 0.6f), "Window with bars");
Here is the result. The window is no longer placed or positioned correctly. When inspecting the window.rect, it does not match the above Rect_LD settings.
This "bug" is making it very difficult to create narrow windows, like for tool bars for example.