From bc0161993211639d3fc64e9dfddb396ebbe8c622 Mon Sep 17 00:00:00 2001 From: Colin Cai <104604363+Creative0708@users.noreply.github.com> Date: Wed, 26 Jun 2024 02:11:31 -0400 Subject: [PATCH] Fix: Menu popups and tooltips don't respect layer transforms (#4708) The menu buttons, combo box menus, and tooltips don't take layer transforms into account when placing their popups, resulting in popups being placed in the wrong location. This PR makes the popups take layer transforms into account, transforming the positions before displaying them on screen. I implemented this fix for menu buttons, combo boxes, and tooltips; let me know if there's anything I missed. Scaling of the popups is purposefully ignored for now. Personally, I think popup scaling isn't necessary but if it is required I can implement it (also it would require doing more invasive things to the code and I want to keep this as simple as possible.) Before the fix: (with a modified version of the "Pan Zoom" web demo)