Hi,
can someone suggest me how can I fit better the calendar in the event block?
In the last two versions of event-5.x-1.x-dev something is changed (but I don't understand what... event.css is still identical) and the event block doesn't fit well the block more.
In this days I have tested a great number of themes and in all of this the event block is too large (about 1/3 in excess). Previous version of event-5.x-1.x-dev (for example the two weeks ago one) works well in all the the themes I've tested.
If you can give me as only a hint I thank you very much!
Best regards,
Saxx

Comments

killes@www.drop.org’s picture

Status: Active » Fixed

fixed in HEAD; backport to 5.0 soon

SaxxIng’s picture

I've tested the last 5.1-1.x-dev version (30 march) but it presents the same problem. Is this correct or the fix isn't yet applied in this version?
Thanks a lot,
Saxx

javierdiaz’s picture

I too have been trying this mod in other themes and it still appears to not fit, putting itself at the bottom of my pages just to fit. If it is fixed in the head, can you tell me how to apply this?

Thanks

Anonymous’s picture

Status: Fixed » Closed (fixed)
jsydelko’s picture

Status: Closed (fixed) » Active

Unless I am doing something wrong... this either has been broken again or was never fixed. I just downloaded the latest version:

event.module,v 1.215.2.15 2007/06/08 12:31:53 killes

The "Calendar to browse events." block is still to large to fit in the side blocks on many themes.

I did find this solution http://drupal.org/node/120063 , but think that this may be a problem for others.

Thanks!

michelle’s picture

Component: Miscellaneous » User interface
Category: support » bug

Confirming that it's too wide in Garland on V1. Will test in V2 when I get that far.

Michelle

kpm’s picture

Title: How to fit better event block » I'll confirm as well on WIndows machines but not on my MacBook

I use the Bluebreeze theme on a site set up and running fine from 6 months or so ago. I recently started another site, used the latest Bluebreeze and indeed the events calendar is too big for the side blocks on Windows machines using Firefox 2.0 and IE 6 and 7. However, on my MacBook, the calendar fits just right in Firefox and Safari.

michelle’s picture

Title: I'll confirm as well on WIndows machines but not on my MacBook » Event block too wide for sidebar

Putting this back to a more descriptive title.

Michelle

thomasmurphy’s picture

I'm having the same problem too, tried it on several different resolutions, and if I put it on the left hand column it breaks the main layout so that other right hand blocks end up at the bottom left. If I disable all right hand blocks then the main content table starts below the bottom of the mini calender. any ideas, anyone?

jamm’s picture

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

I just wanted to confirm that I am having this problem too. Here is my information:

Server: Drupal 5.5 (Linux), Event 5.x-1.0 (note: not dev or head), theme: andreas09-5.x-1.0
------> with the "Calendar to browse events" block located in the Left Sidebar.

Client: Windows 2000/XP, Firefox 2.0.0.11 and IE 6/7
-----> the calendar in the left sidebar overlaps the content div.

Client: Mac OSX 10.5, Firefox 2.0.0.11 and Safari 3
-----> the calendar in the left sidebar fits perfectly with a small margin between it and the content div.

An elegant fix would be lovely!

Thank you.

jamm’s picture

This is a follow-up to my previous post.

I noticed if I lower the font size the sidebar calendar displays correctly, i.e. does not overlap content div.

This is the setting I adjusted:

.event-calendar div.month-view table.event-block thead,
.event-calendar div.month-view table.event-block tbody {
  font-size: .8em;  /* The original value was .9em */
}

I'm not an expert w/ CSS by any means, but IIRC since the event calendar font size is measured in "em" that the actual size displayed in the browser will be based off of the "body { font-size: ?? }". (Someone please correct me if I'm wrong.)

For my theme, andreas09-5.x-1.0, the body font size is 76%.

The problem for myself now is that the original value of ".9em" is fine for Mac OSX browsers (e.g. Firefox 2 & Safari 3), but for Windows browsers (e.g. Firefox 2 & IE 6/7) the value ".8em" is needed.

Can anyone enlighten me on how to handle this situation? My number one choice would be a clean solution that works for all browser/os combinations. If that isn't possible then what? Use programming logic to include different style sheets based on OS?

OK, so if I create two style sheets, one for win and one for mac, whats the best way to code for this in Drupal considering I want to take advantage of caching and such?

apg’s picture

This is kinda lame, but, if you change:
Sun|Mon|Tue|Wed|Thu|Fri|Sat
to:
S|M|T|W|T|F|S

it fits.

In event module, file event.module, line 1317 from this:

      $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')));

to this:

$weekdays = array(array('day' => 'Sun', 't' => t('S')), array('day' => 'Mon', 't' => t('M')), array('day' => 'Tue', 't' => t('T')), array('day' => 'Wed', 't' => t('W
')), array('day' => 'Thu', 't' => t('T')), array('day' => 'Fri', 't' => t('F')), array('day' => 'Sat', 't' => t('S')));

rkolb’s picture

Version: 5.x-1.0 » 6.x-2.x-dev

The work-around that did it for me (at least in working with a BlueBreeze template derivative) was adding 10px to the "margin-left:" of the ".withleft #main" in the layout.css; not elegant either, but we needed to go live.

yas’s picture

Version: 6.x-2.x-dev » 5.x-2.x-dev

I took #11 solution. My theme is foliage. However, it would not be completed.
With Calendar module's css, there has never been a problem. The two CSSs in between Calendar module and Event module are different. So we might refer the Calendar module's css...

braidednation’s picture

I tried this, and indeed it does work. However, something goes wrong with drupal and you get a while page after completing any type of form, or even login.

When you log in again, you get a white screen.

Must replace event.module with orig'

There appears to be a cache issue or something else, when the code is changed.

Tried using CSS, with no avail. Maybe an edit of the template file???

Not sure, would very much like the module to work..please help

McIvan’s picture

Hi guys,

I'm experiencing the same problems (event calendar too wide for the sidebar). However this happens only under IE and ONLY if Block Cache is enabled. I've compared output pages with and without Block Cache - when cache is enabled, some CSS file includes are missing from the page source.

This means that I can't use CSS workaround, offered by jamm and I'm forced to switch of Block Cache.

I'm hoping that because none of you mentioned caching, this might help figure out another workaround or fix the problem at all.

Thank you in advance

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.