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:34:48 UTC

[jira] Created: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

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-M3, 1.4-M2, 1.4-M1
         Environment: IE7, Firefox 3 and Opera 9
            Reporter: Rune Peter Bjørnstad
         Attachments: screenshot-1.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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Rune Peter Bjørnstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rune Peter Bjørnstad updated WICKET-1775:
-----------------------------------------

    Attachment: screenshot-2.jpg

After patching the wicket-autocomplete.js file, the width is no longer limited.

> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Rune Peter Bjørnstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rune Peter Bjørnstad updated WICKET-1775:
-----------------------------------------

    Description: 
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'

  was: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.


> 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.


[jira] Commented: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620152#action_12620152 ] 

Igor Vaynberg commented on WICKET-1775:
---------------------------------------

can you not do this via css?

> 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.


[jira] Resolved: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1775.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

> 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
>            Assignee: Igor Vaynberg
>         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.


[jira] Commented: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Rune Peter Bjørnstad (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (WICKET-1775) AutoCompleteTextField drop-down width limited to the width of target component

Posted by "Rune Peter Bjørnstad (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rune Peter Bjørnstad updated WICKET-1775:
-----------------------------------------

    Attachment: screenshot-1.jpg

Notice hos the width of the drop-down is limited to the width of its target element.

> 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
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.