Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
    villagrad is on a distinguished road

      0  

    Exclamation [FIXED] Drag And Drop Feedback Insert problem

    [FIXED] Drag And Drop Feedback Insert problem


    Hello, i'm using GXT 2.0 RC 2.

    I'm using Two list views with visual FeedBack set to Insert. I found two problems when you try to drop over the same listview.

    One of those, the item dragged is missing. This happend when you drop the item to the last position.
    The other one, happend when you drop the item to the next position. Item moves two positions, and it should be only one.
    Here is the code :

    void doListLayout(){

    Viewport viewport = new Viewport();

    viewport.setLayout(new FillLayout(Orientation.HORIZONTAL));

    ContentPanel cp = new ContentPanel();
    cp.setHeading("PanelX");
    cp.setLayout(new FillLayout(Orientation.HORIZONTAL));

    //ListView
    ListView<CarModel> leftList = new ListView<CarModel>();

    leftList.setSimpleTemplate("<b>{car_make}</b>" +
    " {car_model} <i>({car_year})</i>");

    leftList.setDisplayProperty("name");

    ListStore<CarModel> store = new ListStore<CarModel>();

    store.add(Widgets.getCars());
    leftList.setStore(store);
    cp.add(leftList);
    //

    viewport.add(cp , new MarginData(10, 10, 10, 10));

    cp = new ContentPanel();
    cp.setHeading("PanelY");
    cp.setLayout(new FillLayout(Orientation.HORIZONTAL));

    ListView<CarModel> rightList = new ListView<CarModel>();
    rightList.setSimpleTemplate("{car_year} {car_make} {car_model}");

    store = new ListStore<CarModel>();

    rightList.setStore(store);

    RowData data = new RowData(.5, 1);
    data.setMargins(new Margins(5));

    cp.add(rightList);
    viewport.add(cp , new MarginData(10, 10, 10, 10));

    new ListViewDragSource(leftList);
    ListViewDropTarget t1 = new ListViewDropTarget(leftList);
    new ListViewDragSource(rightList);
    ListViewDropTarget t2 = new ListViewDropTarget(rightList);

    t1.setFeedback(DND.Feedback.INSERT);
    t2.setFeedback(DND.Feedback.INSERT);

    t1.setAllowSelfAsSource(true);
    t2.setAllowSelfAsSource(true);


    RootPanel.get().add(viewport);

    }

    Is this a bug? or i'm doing something wrong?
    Thanks!

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fixed in SVN.

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