Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Problems with Margins in Pre-made Portlets
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?
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?
Any javascript console errors or 404s from the network tab?
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.I have the same issue. I even tried installing the many themes, but it didn’t work. Did you happen to resolve this?
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?
We were able to resolve this by adding the following line in the portal-ext.properties file.
Apparently this is fixed with SP7, but we're not there yet.
#
# 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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™