Artetics Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Problem with large words (1 viewing) (1) Guest
Art Calendar
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Problem with large words
#3032
GUILLAUME BRETOU (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Problem with large words 2 Months, 3 Weeks ago Karma: 0  
Hello,

I have a problem with large words when printing my calendar :
for example, "l'environnement" is too large but it does not break the line.

You can find the example of the problem in attachment.



How could I solve it ?

Guillaume
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/06/14 04:16 By gbretou@castelis.com.
  The administrator has disabled public write access.
#3040
GUILLAUME BRETOU (Visitor)
Posts: 0
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
Re:Problem with large words 2 Months, 3 Weeks ago Karma: 0  
Well, I found a solution, I'm posting it here if someone has the same problem :

First, unminify the JS in :
components/com_artcalendar/js/fullcalendar.min.js

As the code is obfuscated, search for the lines :

Code:

J(aT, aG.find("td.c")); if (w.eventRender) { ...
Add an extra parameter corresponding to the width :
Code:

J(aT, aG.find("td.c"), aL - aN);
Then add the extra parameter in the function :
Code:

function J(aH, aG, width) { ...
to finish, replace the following line :
Code:

c("<span class='event-title' />").text(aH.title).appendTo(aG);
with
Code:

c("<div style='max-width: " + (width) + "px;overflow: auto;word-wrap: break-word;'><span class='event-title' /></div>").text(aH.title).appendTo(aG);
checked OK on FF3.5, IE8, chrome 5.0
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Bookmark

VirtueMart Shopping Cart

Your Cart is currently empty.