[
https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620153#action_12620153
]
Igor Vaynberg commented on WICKET-1775:
---------------------------------------
also my version of js uses variable called "container", not "menu". which
version of wicket are you looking at?
function showAutoComplete(){
var position=getPosition(wicketGet(elementId));
var container = getAutocompleteContainer(); <=== not "menu"
var input=wicketGet(elementId);
var index=getOffsetParentZIndex(elementId);
container.show();
> AutoCompleteTextField drop-down width limited to the width of target component
> ------------------------------------------------------------------------------
>
> Key: WICKET-1775
> URL: https://issues.apache.org/jira/browse/WICKET-1775
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4-M1, 1.4-M2, 1.4-M3
> Environment: IE7, Firefox 3 and Opera 9
> Reporter: Rune Peter Bjørnstad
> Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> The AutoCompleteTextField drop-down width is limited to the width of the
> target <INPUT> element. This is a major limitation when you have custom
> renderers that display additional information about the selectable item.
> I've managed to create a local fix and I've submitted two screenshots that
> describes the difference between an unpatched and patched autocomplete
> component.
> function showAutoComplete(){
> var position=getPosition(wicketGet(elementId));
> var menu = getAutocompleteMenu();
> var input=wicketGet(elementId);
> var index=getOffsetParentZIndex(elementId);
> menu.show();
> menu.style.zIndex=index=="auto"?index:Number(index)+1;
> menu.style.left=position[0]+'px'
> menu.style.top=(input.offsetHeight+position[1])+'px';
> menu.style.width='auto';
> visible=1;
> hideShowCovered();
> }
> I've set menu.style.width='auto'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.