diff --git a/src/main/core/view.js b/src/main/core/view.js index ccc14894..02da27bf 100644 --- a/src/main/core/view.js +++ b/src/main/core/view.js @@ -7,18 +7,13 @@ import dom from "../lib/dom"; import template from "../lib/template"; -const STYLES_SCROLL = "border-radius: 5px 0px 0px 5px;"; -const STYLES_NORMAL = "border-radius: 5px 5px 5px 5px;"; - const createDialogElement = (settings) => { - const systemStyles = settings.scroll === "scroll" ? STYLES_SCROLL : STYLES_NORMAL; - const html = template.render(settings.dialogTemplate, { - systemStyles, + systemStyles: "border-radius: 5px 0px 0px 5px;", // For backward compatibility backgroundColor: settings.backgroundColor, width: settings.width, height: settings.height, - scroll: settings.scroll, + scroll: "scroll", // For backward compatibility }); const dialog = dom.create(html); dom.applyStyles(dialog, settings.normalDialogStyles); diff --git a/src/main/settings.js b/src/main/settings.js index 1636bb07..d7e8b6e4 100644 --- a/src/main/settings.js +++ b/src/main/settings.js @@ -10,7 +10,6 @@ export default { parseWordsLimit: 8, lookupWithCapitalized: false, initialPosition: "right", - scroll: "scroll", skipPdfConfirmation: false, pdfUrl: "", backgroundColor: "#ffffff", @@ -60,12 +59,12 @@ export default { dialogTemplate: `
= (props) => { }); } - const scrolls = [ - { name: res.get("scrollOn"), value: "scroll" }, - { name: res.get("scrollOff"), value: "hidden" }, - ]; - const update = (patch: Partial) => { const newPatch = produce(patch, (d) => { for (const name of Object.keys(patch)) { @@ -108,14 +103,6 @@ export const BasicSettings: React.FC = (props) => { onChange={(value) => update({ initialPosition: value as InitialPosition })} /> - -