Commit d5a81cc4 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Scale tablet examples down to 50% original size.

parent 4a079664
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
    <script type="text/javascript" src="touch/sencha-touch-all.js"></script>
    <link rel="stylesheet" type="text/css" href="touch/resources/css/sencha-touch.css">

    <style id="iframe-css" type="text/css"></style>
    <script type="text/javascript">
        var refreshPage = function(code, options) {
            try {
@@ -14,6 +15,10 @@
                if (!options.raw) {
                    code = "Ext.setup({onReady: function(){" + code + "}});";
                }
                if (options.tablet) {
                    // Scale example down to half the size. Default font-size is 114%
                    Ext.get('iframe-css').update("body {font-size: 57% !important}");
                }
                eval(code);
            } catch (e) {
                document.body.innerHTML = e;