Vue-grid-layout: Overlap issue of responsive layout

Created on 7 Jan 2019  路  10Comments  路  Source: jbaysolutions/vue-grid-layout

Hey, looks like there is an issue of responsive layout feature.
"vue-grid-layout": "^2.3.1",
Version 69.0.3497
os: macOS High Sierra
Look forward to your reply

overlap

Most helpful comment

make sure that the layout property is synched, i.e.:

    <grid-layout
      :layout.sync="widgets"
      ...
    >

adding .sync fixed the overlapping issues for me

All 10 comments

There are all sorts of issues with the responsive layout.
Resizing grid items is very laggy and items will sometimes get wrong size when the mouse is released.

make sure that the layout property is synched, i.e.:

    <grid-layout
      :layout.sync="widgets"
      ...
    >

adding .sync fixed the overlapping issues for me

I am also facing the same issue. Can anyone please look into it.

Responsive layout has big issues :

ezgif-4-c5075d05b433

Seems to be caused by layouts not clear in GridLayout ;)

Fixed by reset lastBreakpoint and layouts on change responsive mode or adding items :
lastBreakpoint = null;
layouts = {};

Seems to be caused by layouts not clear in GridLayout ;)

Fixed by reset lastBreakpoint and layouts on change responsive mode or adding items :
lastBreakpoint = null;
layouts = {};

Can you show demo example?

Hi @Safirion,

Yes please, do you have an example of this?

Thanks!

Ed

Seems to be caused by layouts not clear in GridLayout ;)
Fixed by reset lastBreakpoint and layouts on change responsive mode or adding items :
lastBreakpoint = null;
layouts = {};

Can you show demo example?

I fixed doing the same thing he mentioned, getting this properties fetching the grid-layout with ref

<grid-layout ref="gridLayout"> </grid-layout>

and on mounted event I called this method

resetGridLayout() { this.$refs.gridLayout.lastBreakpoint = null this.$refs.gridLayout.layouts = {} }

I was having this issue due to externally updating layout multiple times when mouted. See here
https://github.com/jbaysolutions/vue-grid-layout/issues/269#issuecomment-617639202

I was having this issue due to externally updating layout multiple times when mouted. See here
#269 (comment)

Did you manage to find a workaround?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goalie7 picture goalie7  路  6Comments

jovanmabilin picture jovanmabilin  路  6Comments

llwinner picture llwinner  路  3Comments

gmsa picture gmsa  路  8Comments

kennethllamasares picture kennethllamasares  路  3Comments