Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Troubleshooting and Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-02-2008, 01:30 PM
DackR DackR is offline
Member
 
Join Date: Dec 2007
Location: Dayton, OH
Posts: 49
Default One more IE6 Issue

I found an issue with some of my users who dont have higher resolution displays(800x600) and are using IE6. Basically, when entering tickets, the bottom half of the page is cut off and they cant scroll down. (I simulated the screenshots on another machine with IE6.)

I believe the problem is with IE6 and something to do with the CSS style sheets.
I found some info about the issue here, but I'm not sure how to fix it myself. I've tried modifying the ./styles/main.css file to add the fix, but I can't figure out where it goes as I am not very familiar with css layouts.

Note: The issue occurs on both './index.php' and './open.php'

If anyone has insight to the issue, I would be most grateful.

Edit: This happens in RC1 and RC2.
Attached Files
File Type: zip IE6bug.zip (64.5 KB, 0 views)

Last edited by DackR; 01-02-2008 at 01:52 PM.
Reply With Quote
  #2  
Old 01-06-2008, 11:02 AM
queen queen is offline
Junior Member
 
Join Date: Dec 2007
Posts: 23
Default bug in IE6

I have had the same problem with IE6 cutting off the
bottom half of the ticket webpage.

I do not have a solution, and am waiting to hear
from someone here in the forum.

I realized it was a browser issue when I checked it
in firefox.

I hope that someone fixes this, because I too have
users who use IE6.

Please let me know if you find a solution

-Christina
Reply With Quote
  #3  
Old 01-08-2008, 01:34 PM
DackR DackR is offline
Member
 
Join Date: Dec 2007
Location: Dayton, OH
Posts: 49
Default

This is the last thing I need to get fixed before I can implement osTicket. MOST of my users have IE6 so this is a MAJOR issue.
Reply With Quote
  #4  
Old 01-08-2008, 08:12 PM
dot45 dot45 is offline
Member
 
Join Date: Dec 2007
Posts: 32
Default

within the main.css file, simpley change the
Code:
* { position:relative;}
to
Code:
* { position:fixed;}
Reply With Quote
  #5  
Old 01-08-2008, 08:26 PM
dot45 dot45 is offline
Member
 
Join Date: Dec 2007
Posts: 32
Default

this fix will make IE6 work, but completely breaks IE7 & firefox. The CSS formatting needs to change to fix it, I am looking at solutions to create a real fix.

Last edited by dot45; 01-08-2008 at 09:40 PM.
Reply With Quote
  #6  
Old 01-08-2008, 09:51 PM
DackR DackR is offline
Member
 
Join Date: Dec 2007
Location: Dayton, OH
Posts: 49
Talking A-Ha! Great idea!

That brings us to a good solution, although it doesn't fix all my issues because I've customized a couple things on the main page, other than that.. it should work perfectly with an un-tampered-with osticket layout.

I've implemented the suggestion of dot45 and a special javascript from here:
http://rafael.adm.br/css_browser_selector/

Here are the steps to fix the compatibility issues:

1. Copy the below code and save it in the osticket root directory as 'browsesel.js':
Code:
// CSS Browser Selector   v0.2.5
// Documentation:         http://rafael.adm.br/css_browser_selector
// License:               http://creativecommons.org/licenses/by/2.5/
// Author:                Rafael Lima (http://rafael.adm.br)
// Contributors:          http://rafael.adm.br/css_browser_selector#contributors
var css_browser_selector = function() {
	var 
		ua=navigator.userAgent.toLowerCase(),
		is=function(t){ return ua.indexOf(t) != -1; },
		h=document.getElementsByTagName('html')[0],
		b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('gecko/')? 'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',
		os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
	var c=b+os+' js';
	h.className += h.className?' '+c:c;
}();
2. Add the following line after the '<head>' line in './include/client/header.inc.php':
Code:
<script src="browsesel.js" type="text/javascript"></script>
3. Replace the '* { position:relative; }' line in './styles/main.css' with:
Code:
.ie7 * { position:relative; }
.ie6 * { position:fixed; }
.gecko * { position:relative; }
.win.gecko * { position:relative; }
.linux.gecko * { position:relative; }
.opera * { position:relative; }
.konqueror * { position:relative; }
.webkit * { position:relative; }
4. Test it out. It works for me.


Note: I don't claim any portion of this code. I just put it all together.

Last edited by DackR; 01-08-2008 at 11:36 PM. Reason: Added the real fix...
Reply With Quote
  #7  
Old 01-09-2008, 01:26 AM
peter peter is offline
Developer
 
Join Date: Dec 2007
Location: Alexandria, LA
Posts: 702
Lightbulb

DackR and dot45, thank you both for the efforts. I think the solution(s) above are great but I personally prefer not to work around/patch the problem which often leads to complexity and/or same issues in the future. In this particular case the issue is with * { position:relative; } which is ONLY useful for fancy page positioning. A new browser or IE version will possibly bring back the problem again in the future. Browsing with custom user agent ( e.g in FF) might result in incorrect browser being detected causing the error again..etc.

A permanent solution is to redo the page positioning as shown below;

In styles/main.css make the following changes.

Change
Code:
body {
  font-family:arial, helvetica, sans-serif;
  font-size:9pt;
  margin:0;
  padding:0;
}

* { position:relative; }
to
Code:
body {
  font-family:arial, helvetica, sans-serif;
  font-size:9pt;
  margin:0;
  padding:0;
  text-align:center;
}

/* * { position:relative; } [comment out or delete]*/
change
Code:
#container {
  width:760px;
  margin:5px auto 0 auto;
  border:1px solid;
}
to
Code:
#container {
  width:760px;
  margin:5px auto 0 auto;
  border:1px solid;
  text-align:left;
}
Please give it a test and let me know.
Reply With Quote
  #8  
Old 01-09-2008, 12:15 PM
DackR DackR is offline
Member
 
Join Date: Dec 2007
Location: Dayton, OH
Posts: 49
Default Outstanding!~

That fixes -ALL- of my layout issues. Now it works as expected in IE6, IE7, and Firefox! (Probably most others too... Haven't checked on Safari yet.) Sweet!

You da' man, Peter!


Edit: Safari works too!

Last edited by DackR; 01-09-2008 at 09:41 PM. Reason: Safari works great
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:33 AM.