Module:Tabs: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
m (set tabset container width/height to match tabcontainer width/height)
mNo edit summary
Line 79: Line 79:
       :css( 'margin-left', '-' .. tostring( width + 10 ) .. 'px' )
       :css( 'margin-left', '-' .. tostring( width + 10 ) .. 'px' )
       :wikitext( self.tabsLeft:render() )
       :wikitext( self.tabsLeft:render() )
     if self.args.height then container:css( 'height', self.args.height .. 'px' ) end
     if self.args.height then left:css( 'height', self.args.height .. 'px' ) end
   end
   end


Line 87: Line 87:
       :addClass( 'zdw-tabcontainer__tabset--top' )
       :addClass( 'zdw-tabcontainer__tabset--top' )
       :wikitext( self.tabsTop:render() )
       :wikitext( self.tabsTop:render() )
     if self.args.width then top.css( 'width', self.args.width .. 'px' ) end
     if self.args.width then top:css( 'width', self.args.width .. 'px' ) end
   end
   end