Commit 9b951f07 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Remove WebKit restriction from --touch-examples-ui.

No more does using this option restrict viewing of inline examples
to WebKit based browsers.  This check is now moved over to
eg-iframe.html in Sencha Touch codebase.
parent ad043fab
Loading
Loading
Loading
Loading
+11 −21
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ Ext.define('Docs.view.examples.Device', {
        Ext.apply(this, this.getIframeSize());
        this.id = this.id || Ext.id();

        if (Ext.isWebKit) {
        // Template for the DIV containing device image and iframe
        this.tpl = new Ext.XTemplate(
            '<div class="touchExample {device} {orientation}">',
@@ -45,15 +44,6 @@ Ext.define('Docs.view.examples.Device', {
                }
            }
        );
        } else {
            this.tpl = new Ext.XTemplate(
                '<div class="touchExample {device} {orientation}">',
                    '<div id={id} class="wrong-browser" style="width: {width}; height: {height};">',
                        '<div style="padding: 20px;">Sencha Touch only functions on WebKit based browsers. <br /><br />Please use Google Chrome or Safari to see live examples.</div>',
                    '</div>',
                '</div>'
            );
        }
    },

    /**
+0 −7
Original line number Diff line number Diff line
@@ -67,13 +67,6 @@ pre.inline-example {
  // add padding to make right scrollbar visible
  padding-right: 25px; }

.touchExample .wrong-browser {
  margin-top: 120px;
  font-weight: bold;
  text-align: center;
  font-size: 120%;
  color: #666; }

.tablet.landscape {
  padding: 83px 87px;
  background: url(../images/tablet-l.jpg) no-repeat; }