Skip to content

Commit

Permalink
Merge pull request #65 from terje/feat/unable-to-get-rect
Browse files Browse the repository at this point in the history
Refer to event rect instead of trying to fetch from App.queryElementRect
  • Loading branch information
ahonn authored Dec 24, 2023
2 parents be38c6c + 0768fa8 commit 1e3d38b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { logseq as plugin } from '../package.json';
import App from './App';
import settings from './settings';

async function openTaskPanel() {
const rect = await logseq.App.queryElementRect('#' + plugin.id);
const taskPanel = document.querySelector('#' + plugin.id)!;
async function openTaskPanel(e: any) {
const { rect } = e;
const taskPanel = document.querySelector("#" + plugin.id)!;

// @ts-ignore
Object.assign(taskPanel.style, {
Expand Down

0 comments on commit 1e3d38b

Please sign in to comment.