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.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default [CLOSED] RC2 - Drag and Drop TreePanel and TreeGrid broken

    [CLOSED] RC2 - Drag and Drop TreePanel and TreeGrid broken


    try drang and drop.. always you will see the window "Just-In-Time Debugging"
    "Just-In-Time Debugging" its a Microsoft program that allow debug javascript.

    tested in hosted mode win vista

    in the class AsyncTreePanelExample add this code
    Code:
    		new TreePanelDragSource(tree);
    
    		TreePanelDropTarget target = new TreePanelDropTarget(tree);
    		target.setAllowDropOnLeaf(true);
    		target.setAllowSelfAsSource(true);
    		target.setFeedback(Feedback.BOTH);
    code example complete
    Code:
    public class AsyncTreePanelExample extends LayoutContainer {
    
    	private TreeLoader<FileModel> loader;
    	private TreePanel<FileModel> tree;
    
    	@Override
    	protected void onRender(Element parent, int index) {
    		super.onRender(parent, index);
    
    		setLayout(new FlowLayout(10));
    
    		final FileServiceAsync service = (FileServiceAsync) Registry.get(Examples.FILE_SERVICE);
    
    		// data proxy
    		RpcProxy<List<FileModel>> proxy = new RpcProxy<List<FileModel>>() {
    			@Override
    			protected void load(Object loadConfig, AsyncCallback<List<FileModel>> callback) {
    				service.getFolderChildren((FileModel) loadConfig, callback);
    			}
    		};
    
    		// tree loader
    		loader = new BaseTreeLoader<FileModel>(proxy) {
    			@Override
    			public boolean hasChildren(FileModel parent) {
    				return parent instanceof FolderModel;
    			}
    		};
    
    		// trees store
    		TreeStore<FileModel> store = new TreeStore<FileModel>(loader);
    		store.setKeyProvider(new ModelKeyProvider<FileModel>() {
    			public String getKey(FileModel model) {
    				return model.getName();
    			}
    		});
    		store.setStoreSorter(new StoreSorter<FileModel>() {
    
    			@Override
    			public int compare(Store<FileModel> store, FileModel m1, FileModel m2, String property) {
    				boolean m1Folder = m1 instanceof FolderModel;
    				boolean m2Folder = m2 instanceof FolderModel;
    
    				if (m1Folder && !m2Folder) {
    					return -1;
    				} else if (!m1Folder && m2Folder) {
    					return 1;
    				}
    
    				return m1.getName().compareTo(m2.getName());
    			}
    		});
    
    		tree = new TreePanel<FileModel>(store);
    		tree.setStateful(true);
    		tree.setDisplayProperty("name");
    
    		tree.setIconProvider(new ModelIconProvider<FileModel>() {
    
    			public AbstractImagePrototype getIcon(FileModel model) {
    				if (!(model instanceof FolderModel)) {
    					String ext = model.getName().substring(model.getName().lastIndexOf(".") + 1);
    
    					// new feature, using image paths rather than style names
    					if ("xml".equals(ext)) {
    						return IconHelper.createPath("samples/images/icons/page_white_code.png");
    					} else if ("java".equals(ext)) {
    						return IconHelper.createPath("samples/images/icons/page_white_cup.png");
    					} else if ("html".equals(ext)) {
    						return IconHelper.createPath("samples/images/icons/html.png");
    					} else {
    						return IconHelper.createPath("samples/images/icons/page_white.png");
    					}
    				}
    				return null;
    			}
    		});
    
    		new TreePanelDragSource(tree);
    
    		TreePanelDropTarget target = new TreePanelDropTarget(tree);
    		target.setAllowDropOnLeaf(true);
    		target.setAllowSelfAsSource(true);
    		target.setFeedback(Feedback.BOTH);
    
    		ContentPanel cp = new ContentPanel();
    		cp.setHeading("Async TreePanel");
    		cp.setLayout(new FitLayout());
    		cp.add(tree);
    		cp.setSize(315, 400);
    
    		ToolTipConfig config = new ToolTipConfig();
    		config.setTitle("Example Information");
    		config.setShowDelay(1);
    		config.setText("In this example state has been enabled for the tree. When enabled, the expand state of the tree is "
    				+ "saved and restored using the StateManager. Try refreshing the browser after expanding some nodes in the "
    				+ "tree. Notice that this works with asynchronous loading of nodes.");
    
    		ToolButton btn = new ToolButton("x-tool-help");
    		btn.setToolTip(config);
    
    		cp.getHeader().addTool(btn);
    
    		add(cp);
    	}
    }

  2. #2
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    this problem appears too in RC2

  3. #3
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    this problem appears too in release..

    remove this line
    Code:
    tree.setStateful(true);
    how to reproduce the error

    select the items

    gxt
    samples
    client
    images


    drag the V scroll to the end and drop

    try...

    if the "Just-In-Time Debugging" window dont appear, select one item..

    drag the V scrool to the begin and drop try several times

  4. #4
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    this problem appears too with the TreeGrid

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I am still unable to reproduce this. Can you please provide some proper other testcase that demonstrates this?

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Was able to reproduce it, thanks for reporting.

  7. #7
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

  8. #8
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    I test in hosted mode.. win vista.. using the code example that I post..
    now in gxt 2.0.1 isnt possible more reorder... you click to drag.. but when you drop the item dont reorder...

  9. #9
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

  10. #10
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    yes this example work fine...

    but you need test with my test case (that can be wrong too)
    my test case use async call..

    you can provide my test case too?

Thread Participants: 1