Alex,
All of the otb widget that wab uses use jimu/dijit/TabContainer, so there are plenty of example you have at your disposal already. Jimu/dijit/Tabcontainer also already spans the whole width of the container as well so there is no need for the code you are trying to add.