1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
    cflynn07 is on a distinguished road

      0  

    Default Unanswered: Attempting to create draggable panel within another panel, stuck in upper left corner

    Unanswered: Attempting to create draggable panel within another panel, stuck in upper left corner


    I'm attempting to add a small panel within another panel and allow users to drag it around the screen.

    Code:
    Ext.define('CS.view.StartScreen', {	extend: 'Ext.panel.Panel',
    	alias: 'widget.startscreen',
    	items: [{
    		xtype: 'panel',
    		title: 'Hello',
    	//	closable: true,
    	//	collapsible: true,
    		draggable: true,
    	//	resizable: true,
    	//	maximizable: true,
    		constrain: true,
    		height: 300,
    		width: 300
    	}],
    	dockedItems: [{
    		xtype: 'toolbar',
    		dock: 'bottom',
    		layout: 'hbox',
    		pack: 'center',
    		items: [
    			{xtype: 'button', text: 'Click Me'}
    		]
    	}]
    });
    However whenever I attempt to drag the panel it snaps back to the upper left hand corner. Can anyone tell me what I'm doing wrong? Thanks!

    Screen Shot 2012-01-21 at 8.25.33 PM.jpg

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
    cflynn07 is on a distinguished road

      0  

    Default


    Any help here guys? Still pretty lost.

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
    cflynn07 is on a distinguished road

      0  

    Default


    I've also noticed that in the examples, panels that have the draggable: true property are not draggable. They snap back to their original location instead of remaining where they're dragged to.

    http://docs.sencha.com/ext-js/4-0/gu...loating_panel/

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