mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Docs: fix search next/prev result positioning
This commit is contained in:
parent
77b503431c
commit
93515e05cd
@ -236,7 +236,7 @@
|
||||
<script type="text/javascript" src="/path/to/jquery.tablesorter.widgets.js"></script>
|
||||
</pre>
|
||||
|
||||
<p>tablesorter works on standard HTML tables. You must include THEAD and TBODY tags:</p>
|
||||
<p>tablesorter works on standard HTML tables. <strong>You must include THEAD and TBODY tags</strong>:</p>
|
||||
|
||||
<pre class="prettyprint lang-html"><table id="myTable" class="tablesorter">
|
||||
<thead>
|
||||
|
@ -74,8 +74,8 @@ jQuery(function($){
|
||||
$collapsible.slideToggle();
|
||||
}
|
||||
if ($current.length) {
|
||||
resultPosition = $current.position().top;
|
||||
parentPosition = $collapsible.length ? $current.closest('tr[id]').position().top : resultPosition;
|
||||
resultPosition = $current.offset().top;
|
||||
parentPosition = $collapsible.length ? $current.closest('tr[id]').offset().top : resultPosition;
|
||||
if (parentPosition + $(window).height() < resultPosition) {
|
||||
parentPosition = resultPosition;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user