Module:Tabs: Difference between revisions

Want an adless experience? Log in or Create an account.
replace arg vtabwidth with left_width
(coerce some args to table)
(replace arg vtabwidth with left_width)
Line 71: Line 71:


   if self.tabsLeft then
   if self.tabsLeft then
     local width = tonumber( self.args.vtabwidth ) or 60
     local width = tonumber( self.args.left and self.args.left.width ) or 60
     container:addClass( 'zdw-tabcontainer--hastabsleft' )
     container:addClass( 'zdw-tabcontainer--hastabsleft' )
     container:css( 'margin-left', tostring( width ) .. 'px' )
     container:css( 'margin-left', tostring( width ) .. 'px' )