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

fix calculation of fillup columns for subtables

parent b0487d39
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -318,7 +318,12 @@ ...@@ -318,7 +318,12 @@
$('tr#' + idToReplace, root).after(response).remove(); $('tr#' + idToReplace, root).after(response).remove();
var missingColumns = (response.prev().find('td').size() - response.find('td').size()); var requiredColumnCount = 0, availableColumnCount = 0;
response.prev().find('td').each(function(){ requiredColumnCount += $(this).attr('colspan') || 1; });
response.find('td').each(function(){ availableColumnCount += $(this).attr('colspan') || 1; });
var missingColumns = requiredColumnCount - availableColumnCount;
for (var i = 0; i < missingColumns; i++) { for (var i = 0; i < missingColumns; i++) {
// if the subtable has fewer columns than the parent table, add some columns. // if the subtable has fewer columns than the parent table, add some columns.
// this happens for example, when the parent table has performance metrics and the subtable doesn't. // this happens for example, when the parent table has performance metrics and the subtable doesn't.
......
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