Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1956 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    25
    Vote Rating
    0
    andreik65 is on a distinguished road

      0  

    Default wrong placement of the popup window of a select field

    wrong placement of the popup window of a select field


    I'm using Sencha Touch Beta 2. When i click on the arrow of a select field, its popup window is placed almost outside the visible space.

    After some testing, I've found out that that it's due to the use of "docked" items (somehow their width is not taken into account when computing the "x axis" of the popup position). I am using the sencha-touch-all.js file taken from the builds directory.

    Here is the code:


    Code:
    Ext.Loader.setConfig({
    	enabled: true
    });
    
    var topPanel = Ext.create('Ext.Panel', {
            id: 'toppanel',
            html: '<div/>TOP</div>',
            docked: 'top',
            width: '100%',
            height: 50,
            style: 'background-color: red; color: white;'
    });
    
    var leftPanel = Ext.create('Ext.Panel', {
        	id: 'leftpanel',
        	docked: 'left',
        	layout: 'fit',
        	width: '33%',
            html: '<div/>LEFT</div>',
            style: 'background-color: green; color: white;'
    });
    
    var dataPanel = Ext.create( 'Ext.Panel', {
        	id: 'dataPanel',
        	layout: 'fit',
        	items:[{
                title: 'Basic',
                xtype: 'formpanel',
                id   : 'dataForm',
                layout: {
                    type : 'vbox',
                    align: 'stretch'
                },
                items: [{
                        xtype: 'fieldset',
                        title: 'Personal data',
                        instructions: '* mandatory field',
                        defaults: {
                            labelWidth: '35%',
                            required      : true,
                            clearIcon     : true
                        },
                        items: [{
                                xtype: 'selectfield',
                                name : 'disasterField',
                                label: 'Disaster field',
                                options: [
                                    {text : 'Value1',value: 'value1'},
                                    {text : 'Value2',value: 'value2'},
                                    {text : 'Value3',value: 'value3'}
                                ]
                            } , {
                                xtype: 'textfield',
                                name: 'name',
                                label: 'Name',
                                autoCapitalize: true
                            }]
                        },{
                            xtype: 'panel',
                            items: [{
                                    text: 'Salva',
                                    xtype: 'button',
                                    width: 135,
                                    right: 0,
                                    height: 50,
                                    handler: function(){
                                      alert("hello");
                                    }
                            }]
                        }
                    ]
                }]
            });
    
    
    
    Ext.application({
        name: 'TEST',
        icon: 'resources/images/icon.png',
        tabletStartupScreen: 'resources/images/tablet_startup.png',
        phoneStartupScreen: 'resources/images/phone_startup.png',
        glossOnIcon: false,
        viewport:{},
    
    
        launch: function() {
        	Ext.Viewport.add(topPanel);
        	Ext.Viewport.add(leftPanel);
        	Ext.Viewport.add(dataPanel);
        }
    });
    Thanks,
    Andrea

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    814
    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

      0  

    Default


    Also want to note that you shouldn't use Ext.create outside of the launch method of Ext.applications. User interactions won't happen if you use the code as you specified.
    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.

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    For the moment, if you add another container to the viewport instead of placing these items directly in the viewport it will work as expected. To fix this properly we're going to have to some rather large internal changes and we don't feel confortable doing it at this late stage of development. I'm going to change this to a defer item that will be fixed at a later milestone. I apologize for the inconvenience of having to do the extra top level container in the meantime.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User
    Join Date
    Nov 2007
    Posts
    25
    Vote Rating
    0
    andreik65 is on a distinguished road

      0  

    Default


    Thank you.


    Regards.