[CLOSED] TagField shape of the header of the combo changed

  1. #1

    [CLOSED] TagField shape of the header of the combo changed

    Dear support.
    I am willing to use the Basic TagField.
    however in your examples, when i add all the tags in the combo and type a few more, the header of the combo changes shape.
    any suggestion?

    here is a snap


    Click image for larger version. 

Name:	tag.jpg 
Views:	21 
Size:	24.8 KB 
ID:	7517

    thanks
    Last edited by Daniil; Jan 21, 2014 at 12:20 PM. Reason: [CLOSED]
  2. #2
    Trigger doesn't support various height
    Can you explain how the trigger should be looked when second line is added to the field?
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    I can suggest the following solution
    Set the following Change handler for TagField
    function onChange(field) {
                if (field.rendered) {
                    var td = field.el.down("td.x-trigger-cell");
                    if (td.getHeight() > 25) {
                        field._color = td.getStyle("border-bottom-color");                    
                        td.setStyle("border-bottom-width", 0);
    
    
                        td.down("div").setStyle({
                            "border-bottom-width" : "1px",
                            "border-bottom-style" : "solid",
                            "border-bottom-color" : field._color
                        });
                    }
                    else if (field._color) {
                        td.down("div").setStyle("border-bottom-width", "0px");
    
    
                        td.setStyle({
                            "border-bottom-width" : "1px",
                            "border-bottom-color" : field._color
                        });
    
    
                        delete field._color;
                    }
                }
            }
    Vladimir Shcheglov
    Sr. Developer
  4. #4
    The fix has been committed to the SVN trunk in revision #5614.

    Thank you for the report!

Similar Threads

  1. Replies: 3
    Last Post: Jan 31, 2014, 6:06 AM
  2. [CLOSED] Simple Tagfield from Codebehind.
    By waxby in forum 2.x Premium Help
    Replies: 2
    Last Post: Jan 06, 2014, 3:51 PM
  3. Replies: 2
    Last Post: Oct 25, 2013, 3:49 AM
  4. Replies: 1
    Last Post: Feb 05, 2013, 11:53 PM
  5. Replies: 6
    Last Post: Aug 25, 2011, 3:13 PM

Posting Permissions