From aa431c4898942cd5b432b9bbe5053b18645525f8 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Mon, 11 Jul 2011 15:29:05 +0300 Subject: [PATCH] Remove the currently unused info tab from example. --- template/app/controller/Examples.js | 10 ---------- template/app/view/examples/Inline.js | 12 ------------ template/resources/sass/viewport.scss | 4 ---- 3 files changed, 26 deletions(-) diff --git a/template/app/controller/Examples.js b/template/app/controller/Examples.js index a59f537c..598c9bf9 100644 --- a/template/app/controller/Examples.js +++ b/template/app/controller/Examples.js @@ -40,11 +40,6 @@ Ext.define('Docs.controller.Examples', { this.activateTab(cmp, 'preview'); } }, - 'inlineexample [cmpName=meta]': { - activate: function(cmp) { - this.activateTab(cmp, 'info'); - } - }, 'inlineexample toolbar button[iconCls=code]': { click: function(cmp) { cmp.up('inlineexample').layout.setActiveItem(0); @@ -55,11 +50,6 @@ Ext.define('Docs.controller.Examples', { cmp.up('inlineexample').layout.setActiveItem(1); } }, - 'inlineexample toolbar button[iconCls=info]': { - click: function(cmp) { - cmp.up('inlineexample').layout.setActiveItem(2); - } - }, 'classoverview': { resize: function() { Ext.Array.each(Ext.ComponentQuery.query('.inlineexample'), function(c) { diff --git a/template/app/view/examples/Inline.js b/template/app/view/examples/Inline.js index 906fd1bd..4ee82ec1 100644 --- a/template/app/view/examples/Inline.js +++ b/template/app/view/examples/Inline.js @@ -36,12 +36,6 @@ Ext.define('Docs.view.examples.Inline', { iconCls: 'preview', tooltip: 'Preview' }, - { - padding: 0, - margin: 0, - iconCls: 'info', - tooltip: 'Meta Info' - }, { padding: 0, margin: 0, @@ -70,12 +64,6 @@ Ext.define('Docs.view.examples.Inline', { html: '' }); - this.items.push({ - bodyPadding: 10, - html: 'Meta Info', - cmpName: 'meta' - }); - this.callParent(arguments); }, diff --git a/template/resources/sass/viewport.scss b/template/resources/sass/viewport.scss index 80b2d61b..7756036e 100644 --- a/template/resources/sass/viewport.scss +++ b/template/resources/sass/viewport.scss @@ -744,8 +744,6 @@ a { background-position: -2px -20px; } &.preview { background-position: -3px -62px; } - &.info { - background-position: -2px -111px; } &.copy { background-position: -2px -85px; } } .active span.x-btn-icon { @@ -755,7 +753,5 @@ a { background-position: -30px -20px; } &.preview { background-position: -31px -62px; } - &.info { - background-position: -30px -111px; } &.copy { background-position: -30px -85px; } } } -- GitLab