MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 39: Line 39:
/* Fix tabbers which incorrectly have their width set to their tabbertabs */
/* Fix tabbers which incorrectly have their width set to their tabbertabs */
$('.tabber').each(function(i, obj) {
$('.tabber').each(function(i, obj) {
if ($(this).prop('style').width)
if (!$(this).prop('style').width) {
$(this).css('max-width', 'none');
else {
var tabbertabWidth = $(this).find('.tabbertab').prop('style').width;
var tabbertabWidth = $(this).find('.tabbertab').prop('style').width;
if (tabbertabWidth) {
if (tabbertabWidth) {