AEM Grid Resizing Issue

Avatar

Avatar

v1101

Avatar

v1101

v1101

02-03-2021

Hi All - I am running into issues with AEM Grid. I have configured the required config for AEM grid but when I refresh the page after the resizing, the resized layout is not persisting.
This is happening in Editable template and AEM version is 6.5. I have configured the below. Can someone tell me what could be the issue.

 

com.day.cq.wcm.mobile.core.impl.MobileEmulatorProvider - Added the page component.
Included the grid.less(Clientlib) in the template page policy (head) and also in the page component as well.
Added the device group property(cq:deviceGroups) in the jcr:content as well
The resized layouting breakpoints offset/width values are captured in the jcr as expected but when I refresh the page, the offset values are not changed that is expected but the layouting is not reflected in the page.
Also verified the nodes in the editable template and it has the cq:responsive node as well.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vijayalakshmi_S

MVP

Avatar

Vijayalakshmi_S

MVP

Vijayalakshmi_S
MVP

03-03-2021

Hi @v1101,

Can you confirm if you have amended anything in grid.less file (on top of one that comes OOTB with AEM maven archetype project)

As a final try to narrow down,

  • Create a new maven archetype project in your local instance and observe the behavior 
  • Check the behavior in we-retail site

Answers (1)

Answers (1)

Avatar

Avatar

Ankur_Khare

MVP

Avatar

Ankur_Khare

MVP

Ankur_Khare
MVP

03-03-2021

This is due to grid.less file not registered in your clientlib folder.

Please add grid.less in ur css.txt of the base clientlib folder and check in your page view source if grid.less is getting injected or not.