Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Frequently Asked Questions
Use the following style:

#<id of parent of tilava-table-wrapper> {
position: absolute;
margin-right: 15px;
}

Expand Down
2 changes: 2 additions & 0 deletions tilava-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ window.TilavaTable = function(spec) {
var screenCssPixelRatio = (window.outerWidth - 8) / window.innerWidth;
var newWidth = Math.ceil(15/screenCssPixelRatio);
$("." + that.spec.scrollbarClassName).css("right", -newWidth).css("width", newWidth);

$table.parent().parent().css("margin-right", newWidth);
};

if ($.browser["webkit"]) {
Expand Down