Its not a bug.
Popups open on right side (left for RTL) by default. If there is not enough space on right side to fit whole popup, popup opens on left side. Direction of popup does not depends on where menu item is located (user tabs section or main tabs section), it depends only on spacing between edge of browser window and element that opens popup.