getBoundingClientRect() returns zoom-scaled coordinates but window.innerWidth does not. With ui-scale-125 active, the right-edge calculation (window.innerWidth - rect.right) mixed coordinate spaces, causing dropdowns to appear displaced from their hamburger buttons. Divide window.innerWidth by the computed zoom factor to match the rect coordinate space. Fixes both cookbookRunning.js (Active tab) and cookbookServe.js (Serve tab). |
||
|---|---|---|
| .. | ||
| fonts | ||
| icons | ||
| js | ||
| lib | ||
| app.js | ||
| icon.ico | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| style.css | ||
| sw.js | ||