this class has the ability to create popup submenus and I managed to make the menu appear no longer on the right but on the left,
now the problem is the popup menu which creates a huge space compared to the options that are entered.
![Image](https://i.postimg.cc/k4NV7yJY/kk.png)
and logically the menupopup is show bad that is bad to see because it comes out of the program window
![Image](https://i.postimg.cc/DzPFZpGG/kk3.png)
obviously I could find a solution by moving the coordinates of the popup by n spaces
What do you think is the best solution?