mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
instead of scrolling the view on every Bounds() call, do it only once
This commit is contained in:
parent
4f49bd6e9b
commit
1f7314747e
@ -36,8 +36,6 @@ html2canvas.Util.backgroundImage = function (src) {
|
||||
};
|
||||
|
||||
html2canvas.Util.Bounds = function getBounds (el) {
|
||||
|
||||
window.scroll(0,0);
|
||||
var clientRect,
|
||||
bounds = {};
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
html2canvas.Parse = function (element, images, opts) {
|
||||
|
||||
window.scroll(0,0);
|
||||
opts = opts || {};
|
||||
|
||||
// select body by default
|
||||
|
Loading…
Reference in New Issue
Block a user