Index: trunk/extensions/UsabilityInitiative/css/suggestions.css |
— | — | @@ -37,7 +37,6 @@ |
38 | 38 | color: black; |
39 | 39 | color: WindowText; |
40 | 40 | margin: 0; |
41 | | - width: 100%; |
42 | 41 | line-height: 1.5em; |
43 | 42 | padding: 0.01em 0.25em; |
44 | 43 | } |
Index: trunk/extensions/UsabilityInitiative/css/combined.css |
— | — | @@ -37,7 +37,6 @@ |
38 | 38 | color: black; |
39 | 39 | color: WindowText; |
40 | 40 | margin: 0; |
41 | | - width: 100%; |
42 | 41 | line-height: 1.5em; |
43 | 42 | padding: 0.01em 0.25em; |
44 | 43 | } |
Index: trunk/extensions/UsabilityInitiative/css/combined.min.css |
— | — | @@ -35,7 +35,6 @@ |
36 | 36 | color:black; |
37 | 37 | color:WindowText; |
38 | 38 | margin:0; |
39 | | -width:100%; |
40 | 39 | line-height:1.5em; |
41 | 40 | padding:0.01em 0.25em; |
42 | 41 | } |
Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | private static $styleFiles = array( |
20 | 20 | 'base_sets' => array( |
21 | 21 | 'raw' => array( |
22 | | - array( 'src' => 'css/suggestions.css', 'version' => 15 ), |
| 22 | + array( 'src' => 'css/suggestions.css', 'version' => 16 ), |
23 | 23 | array( 'src' => 'css/vector.collapsibleNav.css', 'version' => 12 ), |
24 | 24 | array( 'src' => 'css/vector.expandableSearch.css', 'version' => 8 ), |
25 | 25 | array( 'src' => 'css/vector.footerCleanup.css', 'version' => 2 ), |
— | — | @@ -31,11 +31,11 @@ |
32 | 32 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
33 | 33 | ), |
34 | 34 | 'combined' => array( |
35 | | - array( 'src' => 'css/combined.css', 'version' => 112 ), |
| 35 | + array( 'src' => 'css/combined.css', 'version' => 113 ), |
36 | 36 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
37 | 37 | ), |
38 | 38 | 'minified' => array( |
39 | | - array( 'src' => 'css/combined.min.css', 'version' => 112 ), |
| 39 | + array( 'src' => 'css/combined.min.css', 'version' => 113 ), |
40 | 40 | array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ), |
41 | 41 | ), |
42 | 42 | ) |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | |
60 | 60 | // Core functionality of extension scripts |
61 | 61 | array( 'src' => 'js/plugins/jquery.async.js', 'version' => 3 ), |
62 | | - array( 'src' => 'js/plugins/jquery.autoEllipsis.js', 'version' => 14 ), |
| 62 | + array( 'src' => 'js/plugins/jquery.autoEllipsis.js', 'version' => 15 ), |
63 | 63 | array( 'src' => 'js/plugins/jquery.browser.js', 'version' => 8 ), |
64 | 64 | array( 'src' => 'js/plugins/jquery.collapsibleTabs.js', 'version' => 6 ), |
65 | 65 | array( 'src' => 'js/plugins/jquery.color.js', 'version' => 1 ), |
66 | 66 | array( 'src' => 'js/plugins/jquery.cookie.js', 'version' => 4 ), |
67 | 67 | array( 'src' => 'js/plugins/jquery.delayedBind.js', 'version' => 1 ), |
68 | 68 | array( 'src' => 'js/plugins/jquery.expandableField.js', 'version' => 17 ), |
69 | | - array( 'src' => 'js/plugins/jquery.suggestions.js', 'version' => 30 ), |
| 69 | + array( 'src' => 'js/plugins/jquery.suggestions.js', 'version' => 31 ), |
70 | 70 | array( 'src' => 'js/plugins/jquery.textSelection.js', 'version' => 36 ), |
71 | 71 | array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 195 ), |
72 | 72 | array( 'src' => 'js/plugins/jquery.wikiEditor.highlight.js', 'version' => 53 ), |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | array( 'src' => 'js/thirdparty/contentCollector.js', 'version' => 2 ), |
84 | 84 | ), |
85 | 85 | 'combined' => array( |
86 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 446 ), |
| 86 | + array( 'src' => 'js/plugins.combined.js', 'version' => 447 ), |
87 | 87 | ), |
88 | 88 | 'minified' => array( |
89 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 456 ), |
| 89 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 457 ), |
90 | 90 | ), |
91 | 91 | ), |
92 | 92 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.suggestions.js |
— | — | @@ -178,7 +178,8 @@ |
179 | 179 | // New width is only calculated here, applied later |
180 | 180 | var $span = $result.children( 'span' ); |
181 | 181 | if ( $span.outerWidth() > $result.width() && $span.outerWidth() > expWidth ) { |
182 | | - expWidth = $span.outerWidth(); |
| 182 | + // factor in any padding, margin, or border space on the parent |
| 183 | + expWidth = $span.outerWidth() + ( context.data.$container.width() - $span.parent().width()); |
183 | 184 | } |
184 | 185 | $autoEllipseMe = $autoEllipseMe.add( $result ); |
185 | 186 | } |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -1152,7 +1152,8 @@ |
1153 | 1153 | // New width is only calculated here, applied later |
1154 | 1154 | var $span = $result.children( 'span' ); |
1155 | 1155 | if ( $span.outerWidth() > $result.width() && $span.outerWidth() > expWidth ) { |
1156 | | - expWidth = $span.outerWidth(); |
| 1156 | + // factor in any padding, margin, or border space on the parent |
| 1157 | + expWidth = $span.outerWidth() + ( context.data.$container.width() - $span.parent().width()); |
1157 | 1158 | } |
1158 | 1159 | $autoEllipseMe = $autoEllipseMe.add( $result ); |
1159 | 1160 | } |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | $.suggestions.special(context);},special:function(context){if(typeof context.config.special.render=='function'){setTimeout(function(){$special=context.data.$container.find('.suggestions-special');context.config.special.render.call($special,context.data.$textbox.val());},1);}},configure:function(context,property,value){switch(property){case'fetch':case'cancel':case'special':case'result':case'$region':context.config[property]=value;break;case'suggestions':context.config[property]=value;if(typeof context.data!=='undefined'){if(context.data.$textbox.val().length==0){context.data.$container.hide();}else{context.data.$container.show();var newCSS={'top':context.config.$region.offset().top+context.config.$region.outerHeight(),'bottom':'auto','width':context.config.$region.outerWidth(),'height':'auto'} |
66 | 66 | if(context.config.positionFromLeft){newCSS['left']=context.config.$region.offset().left;newCSS['right']='auto';}else{newCSS['left']='auto';newCSS['right']=$('body').width()-(context.config.$region.offset().left+context.config.$region.outerWidth());} |
67 | 67 | context.data.$container.css(newCSS);var $results=context.data.$container.children('.suggestions-results');$results.empty();var expWidth=-1;var $autoEllipseMe=$([]);var matchedText=null;for(var i=0;i<context.config.suggestions.length;i++){var text=context.config.suggestions[i];var $result=$('<div />').addClass('suggestions-result').attr('rel',i).data('text',context.config.suggestions[i]).mousemove(function(e){context.data.selectedWithMouse=true;$.suggestions.highlight(context,$(this).closest('.suggestions-results div'),false);}).appendTo($results);if(typeof context.config.result.render=='function'){context.config.result.render.call($result,context.config.suggestions[i]);}else{if(context.config.highlightInput){matchedText=text.substr(0,context.data.prevText.length);} |
68 | | -$result.append($('<span />').css('whiteSpace','nowrap').text(text));var $span=$result.children('span');if($span.outerWidth()>$result.width()&&$span.outerWidth()>expWidth){expWidth=$span.outerWidth();} |
| 68 | +$result.append($('<span />').css('whiteSpace','nowrap').text(text));var $span=$result.children('span');if($span.outerWidth()>$result.width()&&$span.outerWidth()>expWidth){expWidth=$span.outerWidth()+(context.data.$container.width()-$span.parent().width());} |
69 | 69 | $autoEllipseMe=$autoEllipseMe.add($result);}} |
70 | 70 | if(expWidth>context.data.$container.width()){var maxWidth=context.config.maxExpandFactor*context.data.$textbox.width();context.data.$container.width(Math.min(expWidth,maxWidth));} |
71 | 71 | $autoEllipseMe.autoEllipsis({hasSpan:true,tooltip:true,matchText:matchedText});}} |