mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Remove javascript resizing code from editor.ts
This commit is contained in:
parent
ed7e709285
commit
e91a4b4362
1 changed files with 0 additions and 14 deletions
|
@ -607,12 +607,6 @@ let filterNode = function (node: Node, extendedMode: boolean): void {
|
|||
}
|
||||
};
|
||||
|
||||
let adjustFieldsTopMargin = function (): void {
|
||||
const topHeight = $("#topbuts").height();
|
||||
const margin = topHeight + 8;
|
||||
document.getElementById("fields").style.marginTop = `${margin}px`;
|
||||
};
|
||||
|
||||
document.addEventListener("click", (evt: MouseEvent): void => {
|
||||
const src = evt.target as Element;
|
||||
if (src.tagName === "IMG") {
|
||||
|
@ -626,11 +620,3 @@ document.addEventListener("click", (evt: MouseEvent): void => {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener("resize", () => {
|
||||
adjustFieldsTopMargin();
|
||||
});
|
||||
|
||||
$(function (): void {
|
||||
adjustFieldsTopMargin();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue