Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当在ifream中使用时,如果缩放ifream的大小,会导致水印消失。 #97

Open
cjt24703 opened this issue May 9, 2022 · 0 comments

Comments

@cjt24703
Copy link

cjt24703 commented May 9, 2022

当ifream的窗口足够小的时候defaultSettings.watermark_cols,temp_watermark_x_space,defaultSettings.watermark_rows,temp_watermark_y_space这四个变量的计算结果会为NAN导致后续窗口变大也无法添加水印。
可以如下修改:
defaultSettings.watermark_cols = parseInt(
(page_width - defaultSettings.watermark_x) /
(defaultSettings.watermark_width + defaultSettings.watermark_x_space)
) || 0;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant