Hi

I'm using the minnelli theme that comes with Drupal. When putting the event calendar into the right side block the whole block suddenly drops below all content.

It can't be the event calendar's CSS because I removed all styles in event.css and the problem remains.

Tested it in Firefox, Opera and Safari, only Internet Explorer is making trouble.

Check out the screenshots to see what I mean.

Comments

account-deletion-needed’s picture

StatusFileSize
new27.19 KB

Here's the screenshot showing the display bug in UE6.

Anonymous’s picture

I'm guessing that it has something to do with the width of the calendar. If objects are wider than their containers, IE will often push them below the rest of the content. Without specifically seeing the XHTML and CSS it's hard to say exactly what's causing the problem.

account-deletion-needed’s picture

Yeah I though the same thing. Tried to reduce the calendar width in the CSS file but it didn't solve the problem. Not sure if I changed the width at the right place though.

beert’s picture

It indeed is a problem with the calendar width.
It can be 'solved' with dropping a letter of the names of the days: e.g. 'Mon' -> 'Mo'.

However, I don't think this should be a definitive solution...

nancydru’s picture

Are you sure you don't have an extra <div> in there somewhere?

anjali8507’s picture

yeah.. i'm facing the same problem here.. did anyone got the solution for this bug? i really need help on this.. thanks in advance..

grunthus’s picture

Version: 5.x-1.x-dev » 5.x-1.0
Assigned: Unassigned » grunthus
Category: bug » task
Priority: Normal » Minor

I am also finding the same issue with the Garland theme in IE6. There are 3 images posted on the site with the problem here. Once again IE proves to be such an irritating and obnoxious PITA.

I expect I ought to install 5.x-2.x and see if that makes any odds. Time to fire up the test server.

grunthus’s picture

Version: 5.x-1.0 » 5.x-1.x-dev

Sorry, in my previous post I was referring to 5.x-1.0. I have just installed 5.x-1.x-dev on a test server. Sadly with IE6, the block shifting the div problem persists.
In IE7 however the presence of the calendar on the right hand div (garland) does not destroy the positioning, all works well. CSS to reduce calendar font sizes? Could IE6 users just get the 'UpComing' events block instead of the calendar?

ddv’s picture

Ok, what am I doing wrong here? I opened event.module, located the following lines:

if (!$weekdays) {
if (variable_get('date_first_day', 1)) {
$weekdays = array(array('day' => 'Mon', 't' => t('Mon')), array('day' => 'Tue', 't' => t('Tue')), array('day' => 'Wed', 't' => t('Wed')), array('day' => 'Thu', 't' => t('Thu')), array('day' => 'Fri', 't' => t('Fri')), array('day' => 'Sat', 't' => t('Sat')), array('day' => 'Sun', 't' => t('Sun')));
}
else {
$weekdays = array(array('day' => 'Sun', 't' => t('Sun')), array('day' => 'Mon', 't' => t('Mon')), array('day' => 'Tue', 't' => t('Tue')), array('day' => 'Wed', 't' => t('Wed')), array('day' => 'Thu', 't' => t('Thu')), array('day' => 'Fri', 't' => t('Fri')), array('day' => 'Sat', 't' => t('Sat')));
}
}
return $weekdays;

I changed it to shorten the contractions for the days of the week, like so:

if (!$weekdays) {
if (variable_get('date_first_day', 1)) {
$weekdays = array(array('day' => 'Mo', 't' => t('Mo')), array('day' => 'Tu', 't' => t('Tu')), array('day' => 'We', 't' => t('We')), array('day' => 'Th', 't' => t('Th')), array('day' => 'Fr', 't' => t('Fr')), array('day' => 'Sa', 't' => t('Sa')), array('day' => 'Su', 't' => t('Su')));
}
else {
$weekdays = array(array('day' => 'Su', 't' => t('Su')), array('day' => 'Mo', 't' => t('Mo')), array('day' => 'Tu', 't' => t('Tu')), array('day' => 'We', 't' => t('We')), array('day' => 'Th', 't' => t('Th')), array('day' => 'Fr', 't' => t('Fr')), array('day' => 'Sa', 't' => t('Sa')));
}
}
return $weekdays;
}

I saved the file in the events directory but it didn't change anything. The names of the days are still the original 3 letter contractions. I tried disabling and re-enabling the events module in case it was a cache issue, to no avail. What am I missing?

beert’s picture

Use Manage Strings (in Site Config > Localization)
to change (parts of) strings.

ddv’s picture

I enabled the localizer module and went to "Manage Strings", but there aren't any to manage. The search function turns up nothing even when searching all languages for all strings in that language. I'm just using the default English provided with Drupal. I tried exporting but got nothing that way either. I'm guessing I should at least get some default strings from the core, right???

And why wouldn't changing the text in event.module work?

ddv’s picture

What if I uninstall the module, then re-install it using the modified event.module? Would that shorten the names or are the names stored somewhere else that I haven't found yet?

ddv’s picture

It turns out that simply uninstalling was insufficient. I had to disable all the event module items, then uninstall, then delete the entire event directory from the modules directory, then refresh the modules page, then reinstall everything from scratch and re-enter all my events. But it worked -- the names are now shortened to two characters as per my modification of events.module in the above post and IE 6 is happily displaying everything correctly. Kludgy perhaps, but it worked. Thanks for the tips.

samuelet’s picture

Extrix’s picture

Check this out, it might help

http://drupal.org/node/211058#comment-695355

bardkerbie’s picture

If you add the following line to either your theme's stylesheet or the event.css stylesheet:

.event-calendar .list-view {
	width: 95% !important;
}

It fixes the problem.

lordmaji’s picture

nm. I figured it out. :) Thanks.

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.