You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Rune Peter Bjørnstad (JIRA)" <ji...@apache.org> on 2008/08/05 13:52:44 UTC
[jira] Commented: (WICKET-1775) AutoCompleteTextField drop-down
width limited to the width of target component
[ https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619857#action_12619857 ]
Rune Peter Bjørnstad commented on WICKET-1775:
----------------------------------------------
With the addition of AutoCompleteSettings, this issue is no longer valid.
> 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.