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

Remove automatic detection of overflow from screenshot testing captureSelector method.

parent 29243433
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -249,11 +249,7 @@ PageRenderer.prototype.capture = function (outputPath, callback, selector) { ...@@ -249,11 +249,7 @@ PageRenderer.prototype.capture = function (outputPath, callback, selector) {
if (element && element.length) { if (element && element.length) {
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};
var children = element.find('*:visible').filter(function () { element.each(function (index, node) {
return $(this).css('position') == 'absolute';
});
element.add(children).each(function (index, node) {
var rect = node.getBoundingClientRect(); var rect = node.getBoundingClientRect();
if (isInvalidBoundingRect(rect)) { if (isInvalidBoundingRect(rect)) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter