Hi,
Sorry for the late response. And sorry for my English - I'm French...
@allan, My opinion to add a JS lib that will emulate futurs CSS behaviors that will be implemented by browser vendor when they will be agreing on these behaviors, is that it could be a little touchy in Respondr layout with all the present JS libraries of the portal and portlets.
You will get invariably some JS conflicts : between ES3 versus ES2015 versions, lib version, strict mode/ not strict mode, etc.
@Anthony
100% agreed with your statement :
> "Neither JS solution was satisfactory, I seem to remember issues around latency on-load and browser reflows."
and I add you this statement :
"When you have a choice between a JS solution or a CSS solution to solve a problem, always prefer the CSS solution. " You won't have latency on load and you will have sometimes the help of the CSS GPU accelerated properties (much more efficient and smoother than JS engines).
But your first solution only solve Allan's problem only on maximized view not on dashboard view with more than one column.
@all
That's funny because I sent two days ago to Drew and James this mail that could perhaps solve perhaps your case, Allan.
"I have solved yesterdays a default that was result from Respondr and Bootstrap that has annoyed the community since Respondr : the CSS grid for portlets in dashboard view with more than one column, better than CSS class of James : ".bootstrap-style".
It's a simple LESS mixin (a bit complicated...), that allows you in a portlet with a top CSS class (".bootstrap-style-by-@portletBreakpoint" with @portletBreakpoint equals at choice to 2,3,5,6) to:
1) preserve the html Bootstrap's markup for compatibility and for portlets in AngularJS front,
2) preserve the natural behavior of Bootstrap's Grid for a portlet in a single column layout and maximized layout,
3) preserve the mobile and tablet view on narrow devices, it's a Mobile first solution,
4) but when the portlet is displayed in columns (2, 3, 4 columns) on normal and large desktop displays, the mixin allows you to display -your choice - a mobile view of some component or not, and to have a custom kind of "CSS breakpoint" in the grid, depending not on the Object Windows but on the width of the parent column.
Imagine a portlet grid with 2 DIV with .col-md-6 class, with ".bootstrap-style-by-6" on top it give you:
in a single column display :
DIV 1 & 2 on single row with 50% width each ;
in more than X column display (X at your choice) :
DIV 1 in one row with a width of 100%,
DIV 2 in a second row with a width of 100%.
it's a kind of reflow at col-md-6 (or .col-md-2, .col-md-3, .col-md-4, .col-md-5... your choice) in the portlet mark-up with the all recalculation of the all widths in Bootstrap classes.
5) 35+ lines of LESS mixin, protected by portlet's namespace and .bootstrap-style-by, you can extend, parameterize and customize with @variables.
I am finalizing the mixin (few tiny side effects with the gutters of uPortal grid I'm fixing this morning)
I tell you more this weekend with lots of screen captures of the refactoring of Apereo Feedback Portlet on which I am currently testing the mixin as a POC.
I'll will explain this with demos in my Apereo2016 presentation "On the road of multi -tenancy Portal at UPMC" with the refactoring of Feedback Portlet and maybe Announcement Admin.
-- Christian.
-----Message d'origine-----
De :
uporta...@apereo.org [mailto:
uporta...@apereo.org] De la part de Anthony Colebourne
Envoyé : vendredi 22 avril 2016 00:11
À :
uporta...@apereo.org
Objet : Re: [uportal-user] RE: Responsive portlet design
To unsubscribe from this group and stop receiving emails from it, send an email to
uportal-user...@apereo.org.