I have a table with a dropdown in each row with actions. The problem I have is that in the last rows when pressing the dropdown I have to scrolle the table down to see the options. They do not appear directly to me.
I think it's some configuration of CSS
that I can not fix.
My table:
$object = new CRUD();
// Design initial table header
$data = '<div class="table-responsive">
<table class="table table-bordered table-striped table-condensed">
<tr>
<th >Nombre</th>
<th>Apellido</th>
<th>Paquete</th>
<th>$ Venta</th>
<th>$ Emision</th>
<th>Vendedor</th>
<th>$ Dif</th>
<th>Acciones</th>
</tr>
</div>';
$users = $object->Read();
if (count($users) > 0) {
foreach ($users as $user) {
$link = $user['link'];
$data .= '<tr>
<td>' . $user['first_name'] . '</td>
<td>' . $user['last_name'] . '</td>
<td>' . $user['paq'] . '</td>
<td>' . $user['pventa'] . '</td>
<td>' . $user['pcosto'] . '</td>
<td>' . $user['vendedor'] . '</td>
<td>' . $user['dif'] . '</td>
<td>
<div class="dropdown">
<button class="btn btn-success btn-xs dropdown-toggle" type="button" data-toggle="dropdown">Acciones
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="'. $link .'" target="_blank">Comprobante</a></li>
<li class="divider"></li>
<li><a onclick="GetUserDetails2(' . $user['id'] . ')">Ver +</a></li>
<li><a onclick="GetUserDetails(' . $user['id'] . ')">Editar</a></li>
<li><a onclick="DeleteUser(' . $user['id'] . ')">Borrar</a></li>
</ul>
</div>
</tr>';
}
} else {
// records not found
$data .= '<tr><td colspan="6">No hay pasajeros cargados.</td></tr>';
}
$data .= '</table>';
echo $data;