I'm using FullCalendar with Bartik theme and the text inside the buttons is not centred.

The cause is the CSS in the Bartik theme
td {text-align:left}

which needs to be overridden by FullCalendar to make the buttons appear correctly.

.fc-header td {text-align:center};

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Status: Active » Needs review
FileSize
656 bytes

Patch for above. I've replaced '.fcheader-title' with '.fcheader td' which now covers text align in buttons and title.

aspilicious’s picture

If you update your fullcalendar plugin to the newest version you don't have this problem anymore. He rewrote his css and now its fixed. It's up to Tim if he wants this to be changed. I guess it won't hurt.

Anonymous’s picture

I am using the dev version of 3rd June and problem is there.

aspilicious’s picture

The *plugin* as not from drupal.org. The library found at this site http://arshaw.com/fullcalendar/

Anonymous’s picture

Ahhh OK I see. The problem then is that I used "drush fullcalendar-plugin" and that's not pulling the latest release but 1.4.10

tim.plunkett’s picture

So we should also update the current version, so that drush will grab the newest one.

amateescu’s picture

Here's a patch for that :)

aspilicious’s picture

amateescu this wont work because all the sites with 1.4.x version will get warnings. Hook_requirements calls _fullcalendar_status which tests for the version.

I think the best thing we can do is hardcode a version into drush and change it once in a while. Or make a new define only for that. But thats the same as hardcoding.

amateescu’s picture

You're right. How about this one? I also added some requirements text and a static cache in fullcalendar_get_version().

aspilicious’s picture

I like this :).

aspilicious’s picture

amateescu while you're working with fullcalendar you maybe could look at #1156046: Add color support for Organic Groups ;)

amateescu’s picture

I'd be glad to, but I don't use OG in my current project and I see that patch is all about OG colours.. I dunno, maybe next week when I'll have some more free time :)

tim.plunkett’s picture

Title: Wrong alignment on text in buttons » Allow drush to download latest version without breaking minimum version
Status: Needs review » Reviewed & tested by the community

The diff-without-whitespace for the patch makes it even clearer. Awesome job, I'll probably just commit this now.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.