Elasticsuite: Drag & Drop > Alignment problem

Created on 13 Feb 2018  路  8Comments  路  Source: Smile-SA/elasticsuite

capture d ecran 2018-02-13 a 18 00 35


When I play with the drag & drop, the width of the product decreases and the layout is broken : a product from the 2nd line is moving to the 1st line. See screenshot enclosed.

Preconditions


I'm using Chrome 63 for Mac OS X


Magento Version : 2.2.0 Open source


ElasticSuite Version : Latest (2.5)

Steps to reproduce


Open the search terms, click the "merchandiser" button
Drag & drop several product.
After a few drag & drop the width of the products decreases.
Depending on the width of the browser, a product of the 2nd line may move to the 1st line.

bug

Most helpful comment

Happy Valentine's Day, @afoucret and @romainruaud!

All 8 comments

Another problem with the drag & drop: it's very easy to move a product towards the left, but it's much more difficult to move a product towards the right.

Main problem confirmed.
After one hour spent debugging still no idea of how this can happen.

At the same time I had a try to improve a little bit the sorter with :

  • More compact design (make easier to move the items)
  • Better placeholder during while moving the product

Here is a screenshot :

capture d ecran 2018-02-14 a 10 38 01

What do you think about this ?

I will try to dig to find out why this small offset appears after we move items.

Haha @afoucret while working on the blacklist feature UX, I ended up to exactly the same design : moving the product name inside the "black box" to gain some space on top (I plan to have the "eye" button on top right).

Please let me know if you merge this on master so we are not conflicting

Happy Valentine's Day, @afoucret and @romainruaud!

I will merge on 2.5.x and master today.
Wait for it.

It looks good ^^
About the small offset, when I look at the li object I see that the width doesn't change but the offsetLeft property is set to a wrong value: 587 instead of 591.
capture d ecran 2018-02-14 a 10 48 29

Fixed by PR #753
Will be part of the next maintenance release (2.5.2)

Merged in 2.5.x and master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wouter-toppy picture wouter-toppy  路  4Comments

DanieliMi picture DanieliMi  路  5Comments

markdimi picture markdimi  路  4Comments

wintermute-84 picture wintermute-84  路  4Comments

susonwaiba picture susonwaiba  路  3Comments