I'm using the datatables plugin. I built a table where the first four columns are fixed and the others (which will be generated "dynamically") have input
for quantity typing.
My intention is that when the user presses tab
to go to the next input, the horizontal scroll accompanies, currently (except for IE) the input
gains focus but as the scroll does not move, it stays there hidden in overflow.
Follow the image of how my table is
HowcanImakethedesiredeffectwork(mostly)onChrome?
MyHTMLstructure:
<divid="novoPedidoTabelaA_wrapper" class="dataTables_wrapper form-inline no-footer">
<div class="row">
<div class="col-xs-6"></div>
<div class="col-xs-6"></div>
</div>
<div class="DTFC_ScrollWrapper" style="position: relative; clear: both; height: 182px;">
<div class="DTFC_RightWrapper" style="position: absolute; top: 0; left: 0;">
<div class="DTFC_RightHeadWrapper" style="position: relative; top: 0; left: 0;">
<div class="DTFC_RightHeadBlocker DTFC_Blocker" style="position: absolute; top: 0; bottom: 0;"></div>
</div>
<div class="DTFC_RightBodyWrapper" style="position: relative; top: 0; left: 0; overflow: hidden;">
<div class="DTFC_RightBodyLiner" style="position: relative; top: 0; left: 0; overflow-y: scroll;"></div>
</div>
<div class="DTFC_RightFootWrapper" style="position: relative; top: 0; left: 0;">
<div class="DTFC_RightFootBlocker DTFC_Blocker" style="position: absolute; top: 0; bottom: 0;"></div>
</div>
</div>
<div class="dataTables_scroll">
<div class="dataTables_scrollHead" style="overflow: hidden; position: relative; border: 0px; width: 100%;">
<div class="dataTables_scrollHeadInner" style="box-sizing: content-box; width: 3316px; padding-right: 0px;">
<table style="min-height: 100px !important; margin-left: 0px; width: 3316px;" class="table table-striped table-bordered top dataTable no-footer" cellspacing="0" width="100%" role="grid">
<thead>
<tr role="row" style="height: 56px;">
<th style="width: 307px !important; min-width: 357px !important;" id="produtoAlterar" class="TesteTeste sorting_disabled" rowspan="1" colspan="1">Produto</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">Embalagem</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 113px;">Solicitado (QTD)</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 102px;">Digitado (QTD)</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 06/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 07/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 07/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 08/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 08/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 09/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 09/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 10/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 10/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 11/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 11/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 12/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 12/2015</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 01/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 01/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 02/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 02/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 03/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 03/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 04/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 04/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 05/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 05/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">1a - 06/2016</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">2a - 06/2016</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="dataTables_scrollBody" style="overflow: auto; width: 100%;">
<table id="novoPedidoTabelaA" style="min-height: 100px !important; width: 3315px;" class="table table-striped table-bordered top dataTable no-footer" cellspacing="0" role="grid" aria-describedby="novoPedidoTabelaA_info">
<thead>
<tr role="row" style="height: 0px;">
<th style="width: 300px !important; min-width: 300px !important; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" id="produtoAlterar" class="TesteTeste sorting_disabled" rowspan="1" colspan="1">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">Produto</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">Embalagem</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 113px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">Solicitado (QTD)</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 102px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">Digitado (QTD)</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 06/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 07/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 07/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 08/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 08/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 09/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 09/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 10/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 10/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 11/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 11/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 12/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 12/2015</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 01/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 01/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 02/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 02/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 03/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 03/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 04/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 04/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 05/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 05/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">1a - 06/2016</div>
</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;">
<div class="dataTables_sizing" style="height: 0; overflow: hidden;">2a - 06/2016</div>
</th>
</tr>
</thead>
<tbody>
<tr class="ListaProdutos odd" data-identificador="198" data-solicitado="12" data-nome="2,4-D 806 12X1 L" style="cursor: pointer; height: 99px;" role="row">
<td class="itemEnviado">
<h5 class="ProdutoDescricao" data-produtodescid="198" style="min-width: 299px !important;">2,4-D 806 12X1 L (DQDA.806.003)</h5>
</td>
<td class="itemEnviado">12</td>
<td class="itemEnviado">12</td>
<td class="QTDDigitadoProduto itemEnviado" data-iditem="198">12</td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-6-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-7-15" data-valor="8,5" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-7-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-8-15" data-valor="8,5" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-8-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-9-15" data-valor="8,5" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-9-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-10-15" data-valor="8,5" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-10-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-11-15" data-valor="8,5" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-11-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-12-15" data-valor="8,5" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2015-12-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-1-15" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-1-28" data-embalagem="12" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-2-15" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-2-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-3-15" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-3-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-4-15" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-4-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-5-15" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-5-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-6-15" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
<td class="itemEnviado">
<input class="data" style="height: 10px;" data-data="2016-6-28" data-embalagem="12" data-valor="8,5" data-itemid="198" data-pedido="6" data-produtoqtd="12" type="text"></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="DTFC_LeftWrapper" style="position: absolute; top: 0px; left: 0px; width: 640px; height: 1px;">
<div class="DTFC_LeftHeadWrapper" style="position: relative; top: 0; left: 0; overflow: hidden;">
<table style="min-height: 100px !important; margin-left: 0px; width: 100%;" class="table table-striped table-bordered top dataTable no-footer DTFC_Cloned" cellspacing="0" width="100%" role="grid">
<thead>
<tr role="row" style="height: 56px;">
<th style="width: 300px !important; min-width: 300px !important;" id="produtoAlterar" class="TesteTeste sorting_disabled" rowspan="1" colspan="1">Produto</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">Embalagem</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px;">Solicitado (QTD)</th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 91px;">Digitado (QTD)</th>
</tr>
</thead>
</table>
</div>
<div class="DTFC_LeftBodyWrapper" style="position: relative; top: 0px; left: 0px; overflow: hidden; height: 101px;">
<div class="DTFC_LeftBodyLiner" style="position: relative; top: 0px; left: 0px; overflow-y: hidden; margin-top: -6px; width: 657px; height: 101px;">
<table style="min-height: 100px !important; width: 100%; padding: 0px; margin: 0px;" class="table table-striped table-bordered top dataTable no-footer DTFC_Cloned" cellspacing="0" role="grid" aria-describedby="novoPedidoTabelaA_info">
<thead>
<tr role="row" style="height: 0px;">
<th style="width: 300px !important; min-width: 300px !important; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;" id="produtoAlterar" class="TesteTeste sorting_disabled" rowspan="1" colspan="1"></th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;"></th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 90px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;"></th>
<th class="sorting_disabled" rowspan="1" colspan="1" style="width: 91px; padding-top: 0px; padding-bottom: 0px; border-top-width: 0px; border-bottom-width: 0px; height: 0px;"></th>
</tr>
</thead>
<tbody>
<tr class="ListaProdutos odd" data-identificador="198" data-solicitado="12" data-nome="2,4-D 806 12X1 L" style="cursor: pointer; height: 99px;" role="row">
<td class="itemEnviado">
<h5 class="ProdutoDescricao" data-produtodescid="198">2,4-D 806 12X1 L (DQDA.806.003)</h5>
</td>
<td class="itemEnviado">12</td>
<td class="itemEnviado">12</td>
<td class="QTDDigitadoProduto itemEnviado" data-iditem="198">12</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="DTFC_LeftFootWrapper" style="position: relative; top: 0; left: 0; overflow: hidden;"></div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="dataTables_info" id="novoPedidoTabelaA_info" role="status" aria-live="polite">Mostrando de 1 a 1 de 1 registros</div>
</div>
<div class="col-xs-6"></div>
</div>
</div>