Would be great if someone could take a look into this. Thanks.
---------- Forwarded message ----------
From:
Jcob <Jaa...@seznam.cz>
Date: Mon, Jan 19, 2009 at 8:05 PM
Subject: jQuery UI bug, google groups down
To:
rdw...@gmail.comHi.
I wanted to add an issue into UI group discussion on google groups (
http://groups.google.com/group/jquery-ui), but i couldnt post my message. So i found out youre the main poster and UI developer, so I'm resending my message to you, maybe somebody will use it, hope you'll know what to do with it.
My original message:
subject: datepicker with multiple monht rows and columns has wrong layout
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I tried to create a multi-month datepicker for 12 months on the screen (4 columns, 3 rows). But because every month may spread into 4-6 weeks, individual month groups has different height for different months. Therefore when every month group is positioned only by float:left the output could be very messy (there are holes for moths that didnt fit in). You'll get best idea by looking on this screenshot:
http://img103.imageshack.us/img103/2041/iedatepickerbugxl5.jpg
I tried to fix it just by adding this line of style into ui.datepicker.css near other group formatting:
.ui-datepicker-multi .ui-datepicker-group-first { clear:both; }
I thought, that this fix should manage to arange the first month of a new line properly and it partly did. But i still got that messy result in IE (used IE 7.0). Other browsers formatting was just fine since this. I didnt find any other solution only by modifying the stylesheets (althought i think there must be some), so i made a bit more radical change in a source code of ui.datepicker.js (used version of jQuery UI: 1.6rc4). I found the part where the last month (datepicker-group) of a line is being closed and added a clearance div. So this is the source code of ui.datepicker.js after update:
ln1400: if (drawMonth > 11) {
ln1401: drawMonth = 0;
ln1402: drawYear++;
ln1403: }
ln1404: var clearer = ((col==numMonths[1]-1)?'<div style="clear:both"></div>' : '');
ln1405: calender += '</tbody></table>' + (isMultiMonth ? '</div>' + clearer : '');
ln1406: group += calender;
ln1407: }
line 1404 is brand new and in line 1405 i added the 'clearer' string right after closing tag of a month group.
This helped and my 12-moths calendar looks just fine in IE7.0, FF3.0 and also in Opera9.23
Maybe you'll find better way to fix this issue, maybe it's solved already in some new beta version, maybe I'll inspire you to clean up this mess made by IE.. Just wanted to let know...
Jaacob