1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    13
    Vote Rating
    0
    crystl is on a distinguished road

      0  

    Default Answered: Carousel under video

    Answered: Carousel under video


    Hi all,

    This is my first posting. Greets to all. Sencha is a nice framework!

    My problem:

    I have a panel. And i will on top from the Panel with height 50% a video, and under them a carousel with the rest 50% height. But all my tests dont work.

    Have everyone a example, or idea? My video is already 100% height

    Greets chrisz

  2. Now I see the difference. You're using the Sencha SDK Tools. I am using Sencha Cmd to build my app with Sencha Touch 2.1. If you're starting from scratch, I would recommend downloading Sencha Cmd from here:

    http://www.sencha.com/products/sencha-cmd/download

    and going from there. Using Sencha Cmd, you would create your app using the command:

    sencha generate app Test001 /Users/cHrIsZ/Sites/Test002

    Brice

  3. #2
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    Please post the tests you tried and we'll go from there.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  4. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    13
    Vote Rating
    0
    crystl is on a distinguished road

      0  

    Default re

    re


    Hello Brice,

    thanks for answer.

    Here my 'first' Tests:

    Code:
    Ext.define("Test001.view.Menu", {
        extend: 'Ext.tab.Panel',
        requires: [
            'Ext.TitleBar',
            'Ext.Video'
        ],
        config: {
            tabBarPosition: 'bottom',
        type: 'card',
    
    
            items: [
    
    
        {
                title : 'Test',
                iconCls : 'action',
                cls : 'cards',
                layout : {
                    type : 'vbox',
                    align : 'stretch'
                },
                defaults : {
                    flex : 1
                },
                items : [
    
    
            {
                            xtype: 'video',
                            url: 'http://mytesturl/video.mp4',
                width: '100%'
                    }, 
            {
                        xtype : 'carousel',
                        ui : 'light',
                        direction : 'vertical',
                        items : [{
                            html : 'Test 3',
                            cls : 'card dark businesstemplate2picture'
                        }, {
                            html : 'And can also use <code>ui:light</code>.',
                            cls : 'card dark'
                        }, {
                            html : 'Card #3',
                            cls : 'card dark'
                        }]
                    }
    
    
                   ]
            },
            ]
        }
    });
    Greets...

  5. #4
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    Your example worked for me, I just changed a couple of things:
    1. I added the Ext.carousel.Carousel in the requires array
    2. I removed the type config option since it doesn't exist
    3. Removed a trailing comma from the lone tab panel item
    None of these changes had any effect on it working but here's the code I used:

    Code:
    Ext.define("Test001.view.Menu", {
        extend: 'Ext.tab.Panel',
        requires: [
            'Ext.carousel.Carousel',
            'Ext.Video'
        ],
        config: {
            tabBarPosition: 'bottom',
    
    
            items: [
                {
                    title : 'Test',
                    iconCls : 'action',
                    cls : 'cards',
                    layout : {
                        type : 'vbox',
                        align : 'stretch'
                    },
                    defaults : {
                        flex : 1
                    },
                    items : [
                        {
                            xtype: 'video',
                            url: 'http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4',
                            width: '100%'
                        }, 
                        {
                            xtype : 'carousel',
                            ui : 'light',
                            direction : 'vertical',
                            items : [
                                {
                                    html : 'Test 3',
                                    cls : 'card dark businesstemplate2picture'
                                },
                                {
                                    html : 'And can also use <code>ui:light</code>.',
                                    cls : 'card dark'
                                },
                                {
                                    html : 'Card #3',
                                    cls : 'card dark'
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    });
    If it's still not working as you had intended, please describe the behavior you expect.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  6. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    13
    Vote Rating
    0
    crystl is on a distinguished road

      0  

    Default


    Hi Brice,

    Mhh, dont work for me. I tested this with ipad, chrome, and safari.

    The video already overlapping over the carousel, and the video have a height from 100% (over the full display).

    Btw.: when i enter in the panel, i see already a blackscreen for the video, but without posterUrl.

    I will split the screen at 50%. On top the video, and bottom the carousel. With your (and my) example the video is a overlay over the carousel in 100%.

    I can send a screenshot for you, when you needed...

    Thanks for your answere...

  7. #6
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    I don't see where you've defined a poster url in your code. I have deployed my code here:

    http://m.bricemason.com/video-carousel/

    Try this out, perhaps I'm just not fully understanding your requirements. A screenshot of what you're experiencing and what you'd like to see would be appreciated.

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  8. #7
    Sencha User
    Join Date
    Nov 2012
    Posts
    13
    Vote Rating
    0
    crystl is on a distinguished road

      0  

    Default


    Hi Brice,

    your Example works perfect. But why not for my example :-(

    i see a difference in the html code:

    Your example:
    Code:
    
        </style>   52    <!-- The line below must be kept intact for Sencha Command to build your application -->   53    <script type="text/javascript">(function(h){function f(c,d){document.write('<meta name="'+c+'" content="'+d+'">')}if("undefined"===typeof g)var g=h.Ext={};g.blink=function(c){var d=c.js||[],c=c.css||[],b,e,a;f("viewport","width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no");f("apple-mobile-web-app-capable","yes");f("apple-touch-fullscreen","yes");b=0;for(e=c.length;b<e;b++)a=c[b],"string"!=typeof a&&(a=a.path),document.write('<link rel="stylesheet" href="'+a+'">');b=0;for(e=d.length;b<   54e;b++)a=d[b],"string"!=typeof a&&(a=a.path),document.write('<script src="'+a+'"><\/script>')}})(this);;Ext.blink({"id":"f36b314c-1930-436b-ba9f-8dc294cd77fd","js":[{"update":"delta","path":"app.js","type":"js","bundle":true}],"css":[{"update":"delta","type":"css","path":"resources/css/app.css"}]})</script>   55</head>   56<body>   57    <div id="appLoadingIndicator">   58        <div></div>   59        <div></div>   60        <div></div>   61    </div>   62</body>   63</html>
    My example:
    Code:
        </style>   52    <!-- The line below must be kept intact for Sencha Command to build your application -->   53    <script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script>   54    <script id="md5" type="text/javascript" src="sdk/src/util/MD5.js"></script>   55   56</head>   57<body>   58    <div id="appLoadingIndicator">   59        <div></div>   60        <div></div>   61        <div></div>   62    </div>   63</body>   64</html>
    Is this a difference in the index.html or app.js ?

    btw.: You make a great job here in the forum. Excellent!

    Greets chrisz...
    Last edited by crystl; 28 Nov 2012 at 3:55 AM. Reason: change from CODE to PHP and back. Not correctly formatted.

  9. #8
    Sencha User
    Join Date
    Nov 2012
    Posts
    13
    Vote Rating
    0
    crystl is on a distinguished road

      0  

    Default


    Hi Brice,

    My Example:
    Bevor i click on the top video, i see a Blackscreen over the complete Display. I don't use the PosterUrl. On the bottom right side you can see the three carousell indicators.

    Attachment 40413


    After i click on the first 50% the video started in fullscreen. iPad the same


    Attachment 40412

    Your Webside Example works fine!

    Greets chrisz...

  10. #9
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    I created my example by using Sencha Cmd. I just did a sencha generate app to generate the app then used your code to populate the main tab panel view.

    Do you have any other code, whether it be javascript or css, that might be having an impact on your view?

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  11. #10
    Sencha User
    Join Date
    Nov 2012
    Posts
    13
    Vote Rating
    0
    crystl is on a distinguished road

      0  

    Default


    Hi Brice,

    mhh, i create my example by the same way.

    Under MAC-OS:
    Code:
    sencha app create Test002 /Users/cHrIsZ/Sites/Test002
    Then my automatic created index.html

    HTML Code:
    <!DOCTYPE HTML><html manifest="" lang="en-US"><head>    <meta charset="UTF-8">    <title>Test002</title>    <style type="text/css">         /**         * Example of an initial loading indicator.         * It is recommended to keep this as minimal as possible to provide instant feedback         * while other resources are still being loaded for the first time         */        html, body {            height: 100%;            background-color: #1985D0        }
            #appLoadingIndicator {            position: absolute;            top: 50%;            margin-top: -15px;            text-align: center;            width: 100%;            height: 30px;            -webkit-animation-name: appLoadingIndicator;            -webkit-animation-duration: 0.5s;            -webkit-animation-iteration-count: infinite;            -webkit-animation-direction: linear;        }
            #appLoadingIndicator > * {            background-color: #FFFFFF;            display: inline-block;            height: 30px;            -webkit-border-radius: 15px;            margin: 0 5px;            width: 30px;            opacity: 0.8;        }
            @-webkit-keyframes appLoadingIndicator{            0% {                opacity: 0.8            }            50% {                opacity: 0            }            100% {                opacity: 0.8            }        }    </style>    <!-- The line below must be kept intact for Sencha Command to build your application -->    <script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script></head><body>    <div id="appLoadingIndicator">        <div></div>        <div></div>        <div></div>    </div></body></html>
    and my automatic created app.js

    Code:
    Ext.application({
        name: 'Test002',
    
    
        requires: [
            'Ext.MessageBox'
        ],
    
    
        views: ['Main'],
    
    
        icon: {
            '57': 'resources/icons/Icon.png',
            '72': 'resources/icons/Icon~ipad.png',
            '114': 'resources/icons/Icon@2x.png',
            '144': 'resources/icons/Icon~ipad@2x.png'
        },
    
    
        isIconPrecomposed: true,
    
    
        startupImage: {
            '320x460': 'resources/startup/320x460.jpg',
            '640x920': 'resources/startup/640x920.png',
            '768x1004': 'resources/startup/768x1004.png',
            '748x1024': 'resources/startup/748x1024.png',
            '1536x2008': 'resources/startup/1536x2008.png',
            '1496x2048': 'resources/startup/1496x2048.png'
        },
    
    
        launch: function() {
            // Destroy the #appLoadingIndicator element
            Ext.fly('appLoadingIndicator').destroy();
    
    
            // Initialize the main view
            Ext.Viewport.add(Ext.create('Test002.view.Main'));
        },
    
    
        onUpdated: function() {
            Ext.Msg.confirm(
                "Application Update",
                "This application has just successfully been updated to the latest version. Reload now?",
                function(buttonId) {
                    if (buttonId === 'yes') {
                        window.location.reload();
                    }
                }
            );
        }
    });
    And last, the app/view/Main.js

    Code:
    Ext.define("Test002.view.Main", {
        extend: 'Ext.tab.Panel',
        requires: [
            'Ext.carousel.Carousel',
            'Ext.Video'
        ],
        config: {
            tabBarPosition: 'bottom',
    
    
    
    
            items: [
                {
                    title : 'Test',
                    iconCls : 'action',
                    cls : 'cards',
                    layout : {
                        type : 'vbox',
                        align : 'stretch'
                    },
                    defaults : {
                        flex : 1
                    },
                    items : [
                        {
                            xtype: 'video',
                            url: 'http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4',
                            width: '100%'
                        }, 
                        {
                            xtype : 'carousel',
                            ui : 'light',
                            direction : 'vertical',
                            items : [
                                {
                                    html : 'Test 3',
                                    cls : 'card dark businesstemplate2picture'
                                },
                                {
                                    html : 'And can also use <code>ui:light</code>.',
                                    cls : 'card dark'
                                },
                                {
                                    html : 'Card #3',
                                    cls : 'card dark'
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    });
    Not other changes...

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi