* Now attempting to fix the final few rendering problems in Internet Explorer. Testi...
authorArt Cancro <ajc@citadel.org>
Tue, 25 May 2010 18:08:48 +0000 (18:08 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 25 May 2010 18:08:48 +0000 (18:08 +0000)
webcit/bbsview_renderer.c
webcit/static/t/knrooms.html
webcit/static/wclib.js
webcit/static/webcit.css

index 8a02e35bfc236f4c40e2e9be4231be3d7dd3f246..aad71a415dd6decc34284b483fb2215a7d85ffa6 100644 (file)
@@ -169,6 +169,8 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat,
        int start_index = 0;
        int end_index = 0;
 
+       wc_printf("<div class=\"fix_scrollbar_bug\">");
+
        if (Stat->nummsgs > 0) {
                lprintf(9, "sorting %d messages\n", BBS->num_msgs);
                qsort(BBS->msgs, (size_t)(BBS->num_msgs), sizeof(long), bbsview_sortfunc);
@@ -319,6 +321,7 @@ int bbsview_RenderView_or_Tail(SharedMessageStatus *Stat,
                }
        }
 
+       wc_printf("</div>\n");
        return(0);
 }
 
index c5a687d0c32b88927e5c4cdaeb1b50336a130567..02d6661c05da0ebfca3432b6f5e825cdb04407af 100644 (file)
@@ -26,19 +26,23 @@ OnChange="location.href=roomlistomatic.newview.options[selectedIndex].value">
 
 <??("COND:PREF", 2, "roomlistview", "folders")>
 <div id="content" class="service">
+<div class="fix_scrollbar_bug">
 <table BORDER=0 WIDTH=96%% CELLPADDING=5>
 <?ITERATE("LKRA", ="knrooms_rooms")>
 </table>
+</div>
 <??("X", 2)>
 
 <?!("COND:PREF", 3, "roomlistview", "folders")>
 <div id="content" class="service">
+<div class="fix_scrollbar_bug">
 <div class="box">
  <div class="boxlabel"><?_("Room Listing")></div>
   <div class="boxcontent">
    <div id="roomlist_knrooms"></div>
   </div>
 </div>
+</div>
 <?!("X", 3)>
 <script type="text/javascript">
 FillRooms(KNRoomsRoomList);
index 6d5f228202aec18688407124e37c56f5413a1d76..961b995cad508f7e435737d7148ee81949a21807 100644 (file)
@@ -32,8 +32,6 @@ var ns6=document.getElementById&&!document.all;
 Event.observe(window, 'load', ToggleTaskDateOrNoDateActivate);
 Event.observe(window, 'load', taskViewActivate);
 Event.observe(window, 'load', fixbanner);
-Event.observe(window, 'load', resizeViewport);
-Event.observe(window, 'resize', resizeViewport);
 //document.observe("dom:loaded", setupPrefEngine);
 document.observe("dom:loaded", setupIconBar);
 function CtdlRandomString()  {
@@ -912,31 +910,6 @@ function fixOffsetBanner() {
     contentDiv.style.width = newContentWidth+"px";
   }
 }
-/** Attempt to stop overflowing in x-axis in IE6 */
-function resizeViewport() {
-  var documentWidth = 0;
-  var viewportWidth = document.viewport.getWidth();
-  var iconbar = $('iconbar');
-  var global = $('global');
-  if (iconbar == null || global == null || document.documentElement == null) {
-    return;
-  }
-  if (typeof window.offsetWidth != 'undefined') {
-    documentWidth = window.offsetWidth;
-  } else {
-    documentWidth = document.documentElement.offsetWidth;
-  }
-  if (documentWidth > viewportWidth) {
-    WCLog("resizeViewport");
-    document.documentElement.style.width = viewportWidth+"px";
-    document.documentElement.style.overflowX = "hidden";
-    //viewportWidth = 0.98 * viewportWidth;
-    var newIconBarSize = 0.16 * viewportWidth;
-    var newContentSize = viewportWidth - newIconBarSize;
-    iconbar.style.width = newIconBarSize+"px";
-    global.style.width = newContentSize+"px";
-  }
-}
 
 function RefreshSMTPqueueDisplay() {
        new Ajax.Updater('smtpqueue_inner_div',
index ee0bce11a33453f1379dae2004e521cf3c5f14ab..ca36ec560cbf37de45f0495e299c531e03f6bc2e 100644 (file)
@@ -690,7 +690,6 @@ body, #global {
 
 .fix_scrollbar_bug {
        margin-right: 1px;              /* Gecko and other non-broken browsers */
-       width: expression('96%');       /* Only IE6 understands 'expression' - fixes weird scrollbarbug */
 }
 
 /* Boxes */
@@ -1169,10 +1168,7 @@ dt { clear: both; }
 .imsg {
        text-align: center;
 }
-#summary_view > table { /* hide from IE6 */
-       width: 100%;
-       table-layout: fixed;
-}
+
 colgroup.entity {
        text-align: center;
 }