angular2gridster icon indicating copy to clipboard operation
angular2gridster copied to clipboard

Items added to gridster changes its position from device breakpoint ( small , lg etc )

Open brainyaashish opened this issue 5 years ago • 10 comments

@swiety85 : Items in the gridster changes its positions when in desktop , if user pushed a item to first position by dragging it from some other position , and when he saves or move to the mobile view the Item is not at first place. , how to fix the order of items same in all mode with responsive design .

So the Position set in one device ( desktop) is not consistent when user opens in mobile device . find the image first here in desktop mode i set basic from input 2 as first element . image

now i move to mobile mode ( image 2) , the basic from input 2 moves to second position image

brainyaashish avatar Nov 23 '19 19:11 brainyaashish

@swiety85 @getsales-damian

I need some help on this problem .

brainyaashish avatar Nov 25 '19 17:11 brainyaashish

i need same help on this

sw-ms-ishanishah avatar Nov 28 '19 11:11 sw-ms-ishanishah

@swiety85 @Wykks @getsales-damian , please help on this

brainyaashish avatar Nov 28 '19 15:11 brainyaashish

Any update on this.....

sw-ms-ishanishah avatar Nov 29 '19 10:11 sw-ms-ishanishah

I am having the same problem as well. @swiety85 Do we have a way to resolve this one.

SunilManthenaG01 avatar Nov 29 '19 15:11 SunilManthenaG01

Hi, if it's so urgent, you can try to calculate the item coords for different breakpoints from outside on each item position change. I will try to provide the solution inside gridster component, but I don't know when I will have a moment.

swiety85 avatar Dec 01 '19 18:12 swiety85

@swiety85 please give an example or details for calculate coordinated means?

brainyaashish avatar Dec 03 '19 19:12 brainyaashish

Do any one has any idea, how to do this?

brainyaashish avatar Dec 11 '19 20:12 brainyaashish

As per my assumption every resolution has same lanes size and you can save same width height + x position and y position for every resolutions. which resolve your problem

i apply this and its solve my problem.

sw-ms-ishanishah avatar Dec 12 '19 05:12 sw-ms-ishanishah

That would be part of the problem. For every resolution, we can keep track of the x and y position but in our case, we have two containers say A and B, A is gridster with some widgets in it and B is just a regular div and when we resize B the content inside the gridster should wrap down in an order of how they are displaying in that resolution but existing behavior is they are adjusting to the saved X and Y position which is causing the order change of the widgets.

SunilManthenaG01 avatar Dec 12 '19 15:12 SunilManthenaG01