Changeset 4219
- Timestamp:
- 12/18/07 15:09:23 (1 year ago)
- Files:
-
- 1 modified
-
trunk/plugins/corner/jquery.corner.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/corner/jquery.corner.js
r3417 r4219 2 2 * jQuery corner plugin 3 3 * 4 * version 1.9 1 (9/21/2007)4 * version 1.92 (12/18/2007) 5 5 * 6 6 * Dual licensed under the MIT and GPL licenses: … … 54 54 55 55 $.fn.corner = function(o) { 56 var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent); 57 function sz(el, p) { return parseInt($.css(el,p))||0; }; 56 58 function hex2(s) { 57 59 var s = parseInt(s).toString(16); … … 144 146 ds.width = '100%'; 145 147 } 148 else if (!bot && $.browser.msie) { 149 if ($.css(this,'position') == 'static') 150 this.style.position = 'relative'; 151 ds.position = 'absolute'; 152 ds.top = ds.left = ds.right = ds.padding = ds.margin = '0'; 153 154 // fix ie6 problem when blocked element has a border width 155 var bw = 0; 156 if (ie6 || !$.boxModel) 157 bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth'); 158 ie6 ? ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"') : ds.width = '100%'; 159 } 146 160 else { 147 161 ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' :
