Changeset 13696

Show
Ignore:
Timestamp:
05/12/08 08:26:13 (6 months ago)
Author:
dante
Message:

fixes #5626 and refs #4058 - removes code working around sarafi race condition. With the newest test cases update
to use "real" link attributes and no-magic css loading, these blocks are unnecessary. tested safari 3.1.1 on a variety
of hosts with different throughput and load times. tested built version vs raw trunk. all tabs align on startup.

Location:
dijit/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/layout/TabContainer.js

    r13473 r13696  
    5353                this.tablist.startup(); 
    5454                this.inherited(arguments); 
    55  
    56                 if(dojo.isSafari){ 
    57                         // sometimes safari 3.0.3 miscalculates the height of the tab labels, see #4058 
    58                         setTimeout(dojo.hitch(this, "layout"), 0); 
    59                 } 
    6055 
    6156                if(dojo.isIE && !this.isLeftToRight() && this.tabPosition == "right-h" && 
  • dijit/trunk/_base.js

    r13157 r13696  
    1111dojo.require("dijit._base.wai"); 
    1212dojo.require("dijit._base.window"); 
    13  
    14 //      FIXME: Find a better way of solving this bug! 
    15 if(dojo.isSafari){ 
    16         //      Ugly-ass hack to solve bug #5626 for 1.1; basically force Safari to re-layout. 
    17         //      Note that we can't reliably use dojo.addOnLoad here because this bug is basically 
    18         //              a timing / race condition; so instead we use window.onload. 
    19         dojo.connect(window, "load", function(){ 
    20                 window.resizeBy(1,0); 
    21                 setTimeout(function(){ window.resizeBy(-1,0); }, 10); 
    22         }); 
    23 }