MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 206: Line 206:
item.left = 0;
item.left = 0;
if (item.parent !== undefined) {
if (item.parent !== undefined) {
item.left = item.parent.left + min(item.parent.width, 40);
item.left = item.parent.left + Math.min(item.parent.width, 40);
}
}
});
});
Confirmedusers, editor, Administrators
886

edits