The "force this region to be rendered" setting does not seem to stick. ( my testing was limited to the user bar regions )

I've put the search form block in the userbar second region. Set teh user bar first region to "force this region to be rendered" but it does not. This the user bar second shifts to the far right.

Comments

fubhy’s picture

Status: Active » Fixed

If you have nothing in a region (even if its forced and rendered) it wont have a height in css (height: 0;) ... Elements with height: 0 dont appear on your screen. So if you plan to force a region without any content you should at least give it a height in css.

VM’s picture

Title: The "force this region to be rendered" does not seem to be working » Dynamically set height in Omega UI when forcing region to be rendered.
Category: bug » feature
Status: Fixed » Active

gotcha. So let's switch to a feature request perhaps?

I'd suggest a note to that effect in the description for this setting. Perhaps a dynamic setting when that radio is selected that allows the height to be set from the UI ?

fubhy’s picture

We wont have anything like a height dropdown where the user would be able to select a height. This would mean that we would have to create some useless CSS classes or set the height in the markup which is dirty. I might introduce a class named "forced-region" / "forced-zone" and then give those a min-height of 1px. Not sure about that yet tho.

essbee’s picture

I think the min-height 1px default setting would be a good option.
I just got caught out by this before finally twigging to what was going on.

scelza’s picture

+1 for min-height styled class if forced render is checked.

filnug’s picture

Assigned: Unassigned » filnug

.region-sidebar-first{min-height:1px; } worked fine for me !

sb24’s picture

Another damn bug. Not a happy with this type of work around. Seems sloppy and will probably cause issues later I bet.

VM’s picture

Assigned: filnug » Unassigned

I'm guessing the user in comment #7 didn't read comment #3. AS comment #6 illustrates getting the effect to take hold isn't difficult and I'd rather add a line or three than have a bloated CSS file covering every possible combination of equal heights and non equal heights.

switching assignment made in #6