fix: fix spells (#362)

This commit is contained in:
Rubin Bhandari
2024-10-24 06:00:28 +05:45
committed by GitHub
parent 16ec78f30b
commit c247606baa
6 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ export const openMenu = async (clicked: Button<Child, Attribute>, event: Gdk.Eve
/*
* NOTE: We have to make some adjustments so the menu pops up relatively
* to the center of the button clicked. We don't want the menu to spawn
* offcenter dependending on which edge of the button you click on.
* offcenter depending on which edge of the button you click on.
* -------------
* To fix this, we take the x coordinate of the click within the button's bounds.
* If you click the left edge of a 100 width button, then the x axis will be 0

View File

@@ -8,7 +8,7 @@ import { globalEventBoxes } from 'globals/dropdown';
const { location } = options.theme.bar;
// NOTE: We make the window visible for 2 seconds (on startup) so the child
// elements can allocat their proper dimensions.
// elements can allocate their proper dimensions.
// Otherwise the width that we rely on for menu positioning is set improperly
// for the first time we open a menu of each type.
const initRender = Variable(true);