Foros de discusión

SERIOUS ISSUE : Portlet position get disturbs when zoom in

thumbnail
Fakhruddin S Mushki, modificado hace 10 años.

SERIOUS ISSUE : Portlet position get disturbs when zoom in

Junior Member Mensajes: 78 Fecha de incorporación: 10/04/13 Mensajes recientes
Dears,

I am using Liferay 6.2 with Jboss 7.

Currently I am facing very serious issue and unable to resolve it.

The issue, when the browser screen resolution is 100%, the site looks normal and fine. But as soon as I zoom in, all the portlets loose its position and try to align itself as per the mobile screen. I guess this is due to Liferay responsive HTML. But I DONT WANT THAT FEATURE.

Now the site is complete and ready to run, what minimum changes can fix this issue?

Awaiting your quick response. Especially from Liferay Staff.
thumbnail
Nate Cavanaugh, modificado hace 10 años.

RE: SERIOUS ISSUE : Portlet position get disturbs when zoom in

Junior Member Mensajes: 94 Fecha de incorporación: 27/11/06 Mensajes recientes
Hi Fakhruddin,
Regarding your specific issue, are you using Firefox? I've noticed this doesn't appear to happen in Chrome, and I know in Firefox there's an option to "Zoom text only".
However, I understand you can't sit with all clients and make them check this box, and even though this is by design (basically, the assumption is that people who are having trouble reading may wish to have a more readable experience that fits within the browser), Liferay does allow you full customization, so you could remove it completely.

There are a couple of things you would need to do to completely remove responsiveness:

1. In your theme _diffs directory, create an empty file with this path:
_diffs/css/aui/responsive.scss
That will cover the responsiveness added by Bootstrap

2. To remove all responsiveness from Liferay, you would need to create a hook for /html/css/common/_mixins.scss
and inside of this file you would place:
@import "mixins.portal";

@mixin respond-to($types...) {
	@each $type in $types {
		@if $type == desktop {
			@content;
		}
	}
}


Rebuild/redeploy your theme, deploy your hook, and now there shouldn't be any responsiveness being applied, either during zoom or on mobile devices.

I hope that helps emoticon
thumbnail
Fakhruddin S Mushki, modificado hace 10 años.

RE: SERIOUS ISSUE : Portlet position get disturbs when zoom in

Junior Member Mensajes: 78 Fecha de incorporación: 10/04/13 Mensajes recientes
Thanks Nate.

I will check and get back to u. Thanks for the Quick Response.
thumbnail
Fakhruddin S Mushki, modificado hace 10 años.

RE: SERIOUS ISSUE : Portlet position get disturbs when zoom in

Junior Member Mensajes: 78 Fecha de incorporación: 10/04/13 Mensajes recientes
Dear Nate,

Is hook necessary ? My issue is resolved by creating empty file in _diffs/css/aui/responsive.scss.

How can hook help me ?
thumbnail
Fakhruddin S Mushki, modificado hace 9 años.

RE: SERIOUS ISSUE : Portlet position get disturbs when zoom in (Respuesta)

Junior Member Mensajes: 78 Fecha de incorporación: 10/04/13 Mensajes recientes
Removed responsiveness in the theme.