* Solved the problem of calculating the width of the table header
This commit is contained in:
@@ -11,7 +11,7 @@ $(function()
|
||||
var $title = $('#storyList thead th.c-title');
|
||||
var headerWidth = $('#storyList thead th.c-title a').innerWidth();
|
||||
var buttonWidth = $('#storyList thead th.c-title button').innerWidth();
|
||||
if($title.width() < headerWidth + buttonWidth + 2) $title.width(headerWidth + buttonWidth + 30);
|
||||
if($title.width() < headerWidth + buttonWidth + 16) $title.width(headerWidth + buttonWidth + 30);
|
||||
});
|
||||
|
||||
$('#storyList td.has-child .story-toggle').each(function()
|
||||
|
||||
Reference in New Issue
Block a user