From abbd635c91e3e6822f39aff812328c1e49f7f01d Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 29 Oct 2008 02:23:19 +0000 Subject: [PATCH] "MDL-16784, remove css style, added a hack for ie6" --- repository/javascript.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/repository/javascript.php b/repository/javascript.php index 9c4bd57fa5..9e0569397e 100644 --- a/repository/javascript.php +++ b/repository/javascript.php @@ -89,11 +89,6 @@ function repository_get_client($context) { .fp-grid p{margin:0;padding:0;background: #FFFFCC} .fp-grid .label{height:48px;text-align:center} .fp-grid span{background: #EEF9EB;color:gray} -/* Fix for IE6 */ -* html .yui-skin-sam .yui-panel .hd{ - margin-right: -10px; - width: 660px; -} EOD; @@ -155,7 +150,7 @@ var filepicker = new YAHOO.widget.Panel('file-picker-$suffix', { filepicker.beforeRenderEvent.subscribe(function() { Event.onAvailable('layout-$suffix', function() { layout = new YAHOO.widget.Layout('layout-$suffix', { - height: 480, width: 630, + height: 480, width: 680, units: [ {position: 'top', height: 32, resize: false, body:'
', gutter: '2'}, @@ -172,15 +167,23 @@ var filepicker = new YAHOO.widget.Panel('file-picker-$suffix', { handles: ['br'], autoRatio: true, status: true, - minWidth: 380, + minWidth: 680, minHeight: 400 }); + if(YAHOO.env.ua.ie == 6){ + var title_el = document.getElementById('file-picker-$suffix'); + title_el.style.width = '680px'; + } resize.on('resize', function(args) { var panelHeight = args.height; var headerHeight = this.header.offsetHeight; // Content + Padding + Border var bodyHeight = (panelHeight - headerHeight); var bodyContentHeight = (IE_QUIRKS) ? bodyHeight : bodyHeight - PANEL_BODY_PADDING; Dom.setStyle(this.body, 'height', bodyContentHeight + 'px'); + if(YAHOO.env.ua.ie == 6){ + var title_el = document.getElementById('file-picker-$suffix'); + title_el.style.width = args.width; + } if (IE_SYNC) { this.sizeUnderlay(); this.syncIframe(); -- 2.39.5