You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-01-21 15:10:47

SLRVPVLN2016
Member
Registered: 2016-10-06
Posts: 27

Espace blanc en dessous d'un tableau

Bonjour,

Je crois avoir un petit soucie avec les tableau. Lorsque je crée un tableau à plusieurs éléments, j'ai toujours un espace blanc en dessus du tableau qui apparaît. (voir image plus bas ainsi que code source)

Cela semble exponentiel, plus le tableau est grand plus l'espace est grand. Est-ce qu'il y a un moyen de retirer cette espace blanc, cela est-t'il un bug?

Merci

n38374.png

<table style="border-collapse: collapse; width: 239px; margin-left: auto; margin-right: auto;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 15.0pt;">
<td class="xl65" style="height: 20px; width: 236px; text-align: center;" colspan="3">Test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">1</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="width: 89px; text-align: center;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">2</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">3</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">4</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">5</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">6</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">7</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">8</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">9</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">10</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">11</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">12</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">13</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">14</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
<tr style="height: 15.0pt;">
<td style="height: 20px; text-align: center; width: 59.5px;" align="right">15</td>
<td style="text-align: center; width: 87.5px;">test</td>
<td style="text-align: center; width: 89px;">test</td>
</tr>
</tbody>
</table>

GLPI 9.4.3
Operating system: Linux CentOS 7
Apache/2.4.6 - PHP 7.3.8
Database: MariaDB 10.4.7

Offline

#2 2017-01-23 19:37:38

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Espace blanc en dessous d'un tableau

Ou vous mettez la balmise <table> ou la balise <tbody> qui sert à regrouper les <tr> pour former un tableau <table>.

Donc là double definition de tableau


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2017-01-23 20:51:40

SLRVPVLN2016
Member
Registered: 2016-10-06
Posts: 27

Re: Espace blanc en dessous d'un tableau

Bonjour Yllen,

Merci de ta réponse. Malheureusement, le problème est également présent avec le code généré par l'outil de l’éditeur "WYSIWYG" de la dernière version 9.1.2. En débogage, je vois bien un espace blanc et la taille du iframe qui est largement supérieur à la taille du tableau lorsque celui-ci est suffisamment grand. (plus de 10 rows)

<table>
<tbody>
<tr>
<td>Test</td>
</tr>
</tbody>
</table>

GLPI 9.4.3
Operating system: Linux CentOS 7
Apache/2.4.6 - PHP 7.3.8
Database: MariaDB 10.4.7

Offline

#4 2017-01-25 15:51:32

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Espace blanc en dessous d'un tableau

Comme indiqué précédemment, il faut supprimer la balise <tbody> dans votre code


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2017-01-25 16:08:30

SLRVPVLN2016
Member
Registered: 2016-10-06
Posts: 27

Re: Espace blanc en dessous d'un tableau

Bonjour Yllen,

Même lorsque j'essais de retirer les balises <tbody>, ceux-ci reviennent automatiquement.

Merci,


GLPI 9.4.3
Operating system: Linux CentOS 7
Apache/2.4.6 - PHP 7.3.8
Database: MariaDB 10.4.7

Offline

Board footer

Powered by FluxBB