Skip to content
Extraits de code Groupes Projets
Valider b2a064d7 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Do not consider node when determining view rect of screenshot if node is not visible.

parent 88ca094e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -250,6 +250,10 @@ PageRenderer.prototype.capture = function (outputPath, callback, selector) { ...@@ -250,6 +250,10 @@ PageRenderer.prototype.capture = function (outputPath, callback, selector) {
var clipRect = {bottom: null, height: null, left: null, right: null, top: null, width: null}; var clipRect = {bottom: null, height: null, left: null, right: null, top: null, width: null};
element.each(function (index, node) { element.each(function (index, node) {
if (!$(node).is(':visible')) {
return;
}
var rect = $(node).offset(); var rect = $(node).offset();
rect.width = $(node).outerWidth(); rect.width = $(node).outerWidth();
rect.height = $(node).outerHeight(); rect.height = $(node).outerHeight();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter