remove tab stretch option

This commit is contained in:
jean-emmanuel 2016-02-29 22:43:05 +01:00
parent ca914e8f8e
commit 3bab6b6500
3 changed files with 1 additions and 13 deletions

View file

@ -11,7 +11,7 @@ You can try the app here http://openstagecontrol.herokuapp.com/
Please note that :
- Chrome 47 at least is required
- Since there is only one instance running, all connected guests are synchronized (widgets using the same osc paths update each other's states) : you might experience some unwanted synchronization with other users unless you specify custom parameters for your widgets.
- You might want to download the examples sessions files under *sessions/* and load them from the app to get started.
- You might want to download the examples sessions files under *examples/* and load them from the app to get started.
### Features
@ -84,7 +84,6 @@ A valid session file is a javascript file that returns, when eval'd, an array of
{
id:"my_tab_id", // [string] optional, default to unique 'tab_n'
label:"My tab", // [string] default to id
stretch:false, // [bool] set to true to stretch widgets width (don't put horizontal strips in it)
widgets: [], // [array] of widget objects
tabs: [] // [array] of tab objects
// A tab cannot contain widgets and tabs simultaneously

View file

@ -44,7 +44,6 @@ module.exports.tabs = function(data,parent,main){
on = i==0?'on':''
tabData.label = label
tabData.stretch = tabData.stretch || false
delete tabData.id
navtabs.append(`<li class="${on}"><a class="${on}" data-tab="#${id}"><span>${label}</span></a></li>`)
@ -52,7 +51,6 @@ module.exports.tabs = function(data,parent,main){
var tabContent = $(`<div class="tab ${on}" id="${id}"></div>`)
tabContent.data(tabData)
if (tabData.stretch) tabContent.addClass('stretch')
if (tabData.tabs) {
module.exports.tabs(tabData.tabs,parent=tabContent)

View file

@ -642,15 +642,6 @@ a {
// TABS
.tab.on.stretch {
display:flex;
justify-content: space-between;
> .widget {
width:100%;
}
}
.tab {
display:none;
overflow: auto;