RE: Problems with Margins in Pre-made Portlets

John Cressman, modified 6 Years ago. Junior Member Posts: 39 Join Date: 8/15/17 Recent Posts
I am having issue where the margins on portlets - webcontent display and breadcrumbs - do not seem to be keeping their margins when set through Look and Feel Configuration->Margin and Padding.

For instance, on one page, I created 3 different breadcrumbs and gave them all different left margins. The margins stuck. I then went to page 2 (with no portlets) and refreshed. Then went back to page 1 and all breadcrumbs are back to their original positions. When I refresh, they go back to the set values.

This only seems to happen in a virtual instance, no the main instance and I've tried multiple themes.

Any ideas or suggestions?
thumbnail
David H Nebinger, modified 6 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Any javascript console errors or 404s from the network tab?
Shane James, modified 6 Years ago. New Member Post: 1 Join Date: 3/14/19 Recent Posts
John CressmanI am having issue where the margins on portlets - webcontent display and breadcrumbs - do not seem to be keeping their margins when set through Look and Feel Configuration->Margin and Padding.

For instance, on one page, I created 3 different breadcrumbs and gave them all different ttrockstars left margins. The margins stuck. I then went to page 2 (with no portlets) and refreshed. Then went back to page 1 and all breadcrumbs are back to their original positions. When I refresh, they go back to the set values.

This only seems to happen in a virtual instance, no the main instance and I've tried multiple themes.

Any ideas or suggestions?
I have the same issue. I even tried installing the many themes, but it didn’t work. Did you happen to resolve this?
John Cressman, modified 6 Years ago. Junior Member Posts: 39 Join Date: 8/15/17 Recent Posts
We were able to resolve this by adding the following line in the portal-ext.properties file.

#
# Fix for issue with version of Liferay stripper, fixed in SP7
# https://issues.liferay.com/browse/LPS-74181
#
com.liferay.portal.servlet.filters.strip.StripFilter=false

​​​​​​​Apparently this is fixed with SP7, but we're not there yet.