本文介绍了jsignature签名未显示在三星Galaxy S4上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PhoneGap,JQuery中使用jSignature( https://github.com/willowsystems/jSignature )移动应用程序.

Using jSignature (https://github.com/willowsystems/jSignature) within a PhoneGap, JQuery Mobile application.

当尝试使用Samsung Galaxy S4登录内容div时,绘制的线不显示.当我提取数据时,签名就在那里,但由于某种原因没有显示.任何想法为什么会这样?它已经在其他设备上工作,例如三星Galaxy S3,iPhone和iPad.

When trying to sign in the content div using the Samsung Galaxy S4 the drawn line is not displaying. The signature is there when I pull the data but is for some reason not displaying. Any ideas why this might be? It has been working on other devices such as Samsung Galaxy S3, iPhone, and iPad.

<script>
    var signatureContentDiv = $("#signatureContentDiv");
    signatureContentDiv.html("");
    signatureContentDiv.jSignature();
</script>

<div id="signatureContentDiv"></div>

推荐答案

我也刚遇到这个问题.对我来说,该错误在运行Chrome时出现在Galaxy Note 2.0上.我尝试更改为Firefox,并且可以正常运行.直接在jSignatures站点上尝试演示时,会注意到相同的行为.我建议对照他们的网站进行检查,看看您的设备是否可以正常工作,以消除导致您的代码出问题的地方.

I have also just run into this. For me, the error appears on the Galaxy Note 2.0 while running Chrome. I tried changing to Firefox and it works properly. The same behavior is noted when trying the demo directly on jSignatures site. I would suggest checking against their site and seeing if your device works properly to eliminate your code being the issue.

希望这会解决.

其他信息:我刚刚确定它似乎是基于图像的尺寸.超过66,000像素(例如600x110)的像素都会导致失败.这似乎仍然只会发生在某些设备上,它们都运行相同版本的Chrome.

Additional Info: I have just determined that it seems to be based on the dimensions of the image. Anything over 66,000 pixels (such as 600x110) will cause the failure. This still seems to only happen on certain devices, all running the same version of Chrome.

这篇关于jsignature签名未显示在三星Galaxy S4上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 23:58