1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    65
    Vote Rating
    3
    thang_ibrahim is on a distinguished road

      0  

    Default Unanswered: Panel Overlay!!!

    Unanswered: Panel Overlay!!!


    test1.png

    When i'm using overlay in sencha touch 2.0 , I get result like above picture.
    But i want overlay margin with left is 0 like this:

    test2.png

    How can I do that

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Location
    netherlands
    Posts
    11
    Vote Rating
    0
    pimskie is on a distinguished road

      0  

    Default


    You could give it a style of
    Code:
    left: 0px; 

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    65
    Vote Rating
    3
    thang_ibrahim is on a distinguished road

      0  

    Default


    Same result

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    65
    Vote Rating
    3
    thang_ibrahim is on a distinguished road

      0  

    Default


    Anybody know that?
    In the overlay examples of sencha provider:
    Code:
    overlay = Ext.Viewport.add({            xtype: 'panel',
    
    
                // We give it a left and top property to make it floating by default
                left: 0,
                top: 0,
    
    
                // Make it modal so you can click the mask to hide the overlay
                modal: true,
                hideOnMaskTap: true,
    
    
                // Make it hidden by default
                hidden: true,
    
    
                // Set the width and height of the panel
                width: isPhone ? 260 : 400,
                height: isPhone ? '70%' : 400,
    
    
                // Here we specify the #id of the element we created in `index.html`
                contentEl: 'content',
    
    
                // Style the content and make it scrollable
                styleHtmlContent: true,
                scrollable: true,
    
    
                // Insert a title docked at the top with a title
                items: [
                    {
                        docked: 'top',
                        xtype: 'toolbar',
                        title: 'Overlay Title'
                    }
                ]
            });
    But overlay margin with left not equal 0.
    Sorry for bad english

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Answers
    3355
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    There is a hardcoded minimum left of 5px so there really is not going to be a way to fix this without overriding framework code. Ext.Component's alignTo method is what controls this.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar