Normal case:
+----------------+ | | | Adjacency Rect | | | +----------------+ +----------------+----------------+ | | | | | | | | | Valid menu placement | | | | | | | | | +---------------------------------+
When the placing the menu there would make it partially offscreen, we have:
+-------------------------+ | | | | | | | Valid menu placement | | | | | +----------------+--------+ +----------------+ | | | Adjacency Rect | | | +----------------+
---------------------- Screen edge ------------------
« Back to merge proposal
Normal case:
+----------------+ ------- ---+--- ------- ------+ ------- ------- ------- ------+
| |
| Adjacency Rect |
| |
+----------------+
+------
| |
| |
| |
| |
| Valid menu placement |
| |
| |
| |
| |
+------
When the placing the menu there would make it partially offscreen, we have:
+------ ------- ------- -----+ ------- ---+--- -----+
| |
| |
| |
| Valid menu placement |
| |
| |
+------
+----------------+
| |
| Adjacency Rect |
| |
+----------------+
------- ------- ------- - Screen edge ------------------