jsdialog: handle vertical tabcontrol
vertical tabcontrol has "vertical: true" property for now just handle it as normal tab control, it doesn't use tabpages but regular grids for tab contents Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ie374f8c68cbbf1e3076ca884ab54568ee204f04c
This commit is contained in:
parent
7ef605badd
commit
da75488a46
1 changed files with 3 additions and 3 deletions
|
@ -1154,7 +1154,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
|||
if (data.tabs) {
|
||||
var tabs = 0;
|
||||
for (var tabIdx = 0; data.children && tabIdx < data.children.length; tabIdx++) {
|
||||
if (data.children[tabIdx].type === 'tabpage')
|
||||
if (data.children[tabIdx].type === 'tabpage' || data.vertical)
|
||||
tabs++;
|
||||
}
|
||||
var isMultiTabJSON = tabs > 1;
|
||||
|
@ -1330,7 +1330,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
|||
for (var tabIdx = 0; tabIdx < data.children.length; tabIdx++) {
|
||||
var tab = data.children[tabIdx];
|
||||
|
||||
if (tab.type !== 'tabpage')
|
||||
if (tab.type !== 'tabpage' && !data.vertical)
|
||||
continue;
|
||||
|
||||
builder.build(contentDivs[tabId], [tab], false, false);
|
||||
|
@ -1342,7 +1342,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
|||
for (var tabIdx = 0; tabIdx < data.children.length; tabIdx++) {
|
||||
var tab = data.children[tabIdx];
|
||||
|
||||
if (tab.type !== 'tabpage')
|
||||
if (tab.type !== 'tabpage' && !data.vertical)
|
||||
continue;
|
||||
|
||||
builder.build(contentDivs[singleTabId], [tab], false, false);
|
||||
|
|
Loading…
Reference in a new issue