phpScheduleIt
May 18, 2013, 05:47:12 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: column length on scheduling page & export ical/vcal usin  (Read 3724 times)
seankoo
Jr. Member
**

Karma: 0
Posts: 55


« on: December 21, 2006, 10:50:59 AM »

Hi Nick,

Is there any easy way to make each cell stay on same length in the calendar?
For example, when I don't have any schedule in calendar, it looks same width on each cell. But if I make an appointment and put some comment in there, the cell width become bigger than empty cell.
I want to stay those cell same width all the time.  Could you tell me where I can take a look at this?

I think I post this a couple of months ago that having a problem with exporting file using IE.
The problem is not consistent.  Sometime it works and sometimes it doesn't so I am not sure if there is any solution on this.
Anyway, whenever there is a problem, I get the following message.
"Internet Explorer cannot download ical.php from ...SEVER_NAME Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later"
I tried with IE6, IE7.  It works with FireFox.
Is there any setting that I need to change or something?  I researched myself that it was a known bug from MS.
http://support.microsoft.com/?kbid=319032 but not anymore with IE6 and IE7.
If you find any solution on this, please let me know.

Thank you much!!!
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: December 21, 2006, 12:14:30 PM »

1) This is a problem I've seen, too.  It is apparently due to the way that browsers render the HTML cells with or without content.  I haven't found a solution for this yes, short of putting a fixed CSS width attribute on the cell (which is tricky to accurately calculate).

2) I'm seeing this on IE7 as well.  I'm sure this was working in the past, so somehow I introduced a bug.  I'll add this to the bug list and have a fix for it.
Logged
seankoo
Jr. Member
**

Karma: 0
Posts: 55


« Reply #2 on: December 21, 2006, 11:29:09 PM »

Nick,

I've found something else.  I think this is even better information related to export problem.
http://support.microsoft.com/default.aspx?scid=KB;EN-US;q316431
Logged
seankoo
Jr. Member
**

Karma: 0
Posts: 55


« Reply #3 on: December 22, 2006, 03:38:53 PM »

Nick,

What template should I put the following code?
header("Pragma: public");
header("Cache-Control: max-age=0");
It seems like it will be resolving the problem of export file using IE6 or IE7
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #4 on: December 23, 2006, 03:36:59 AM »

/lib/pagebase/download/DownloadPage.php

There is a function called printHeaders() where header content is set.
Logged
seankoo
Jr. Member
**

Karma: 0
Posts: 55


« Reply #5 on: December 23, 2006, 12:52:21 PM »

It works after I added the code.  Thank you Nick
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #6 on: December 23, 2006, 08:57:10 PM »

That's great to know.  Does Firefox still work also?  If so, I'll make sure this is in the next version of the app.
Logged
seankoo
Jr. Member
**

Karma: 0
Posts: 55


« Reply #7 on: December 23, 2006, 10:59:04 PM »

Yes.  It works on Firefox as well
Logged
Fox
Newbie
*

Karma: 0
Posts: 3


« Reply #8 on: May 23, 2008, 11:10:13 AM »

Hi,

First of all, I would like to thank you for this very good stuff.
I would like to know if there was any solution to the problem mentionned above :

Quote
Is there any easy way to make each cell stay on same length in the calendar?
For example, when I don't have any schedule in calendar, it looks same width on each cell. But if I make an appointment and put some comment in there, the cell width become bigger than empty cell.
I want to stay those cell same width all the time. Could you tell me where I can take a look at this?


I am trying to fix this without succes for now and I really don't understand why it doesn't work.
I have tried quite some modifications in "schedule.template.php" at line 305 and in the class "inlineSummary" of the css but nothing works...

Even when there is only one character in the cell, this is getting wider and wider than what it should be.

Could you please help me fixing this ?

Thanks...
Logged
Fox
Newbie
*

Karma: 0
Posts: 3


« Reply #9 on: May 26, 2008, 04:13:16 AM »

Hi,

I finally found a fix for the problem of column width.

The "table-layout" property sets the algorithm used to display the table cells, rows, and columns.
With the default value, or when it is set to automatic, the column width is set by cell content (even if width attribute has been set anywhere).
So, here is the fix to override the default cell rendering mode. When the value is set to fixed, column width is set by table width attribute and the width attribute of the columns.

Finally, it works with css modified like that :

Code:
table {
border-width: 0px;
font-size: 11px;
table-layout: fixed;
}


I hope this will help somebody here...
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #10 on: May 30, 2008, 10:46:20 AM »

Awesome, thank you.
Logged
Fox
Newbie
*

Karma: 0
Posts: 3


« Reply #11 on: May 30, 2008, 11:47:54 AM »

I could not post on this forum earlier because I was not able to access it (Bandwidth exceeded error).

There is an issue in putting this property at this high level (global table property) in css. This make some distorsions to appear in some other parts of the site.

So, instead of modifying this property, I added a class named "scheduleTable".

You have to put at the end of the "css.css" file :

Code:
.scheduleTable {
    table-layout: fixed; /* [MOD] Fix for non standard cell width */
}


And in "templates\schedule.template.php" you have to make changes at line 85 and 88 :

At line 85 replace :
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="1">

With :
Code:
<table class="scheduleTable" width="100%" border="0" cellspacing="0" cellpadding="1">


At line 88 replace :
Code:
<table width="100%" border="0" cellspacing="1" cellpadding="0">

With :
Code:
<table class="scheduleTable" width="100%" border="0" cellspacing="1" cellpadding="0">


That's all... Hope that it will help ;-)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!