Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
fubhy CreditAttribution: fubhy commentedIf 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.
Comment #2
VM CreditAttribution: VM commentedgotcha. 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 ?
Comment #3
fubhy CreditAttribution: fubhy commentedWe 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.
Comment #4
essbee CreditAttribution: essbee commentedI 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.
Comment #5
scelza CreditAttribution: scelza commented+1 for min-height styled class if forced render is checked.
Comment #6
filnug CreditAttribution: filnug commented.region-sidebar-first{min-height:1px; }
worked fine for me !Comment #7
sb24 CreditAttribution: sb24 commentedAnother damn bug. Not a happy with this type of work around. Seems sloppy and will probably cause issues later I bet.
Comment #8
VM CreditAttribution: VM commentedI'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