Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ToolStrip: how to position form inside it and hide separator background

    Hello,

    I am using the following toolstrip:

    Code:
    isc.ToolStrip.create(
    	{"width":750,
             "height":20,
            "members":[add_button, edit_button, delete_button, "separator", searchForm],
            "position":"relative",
            "membersMargin":10,
            "border":0,
            "separatorSize":200}
    );
    The problem is that the "searchForm", which contains only one field, seems to be valigned to the bottom, and not top ( see screenshot ). How can i force it to go to the top?


    Also, as you might see on the screenshot, the separator have a background image. Is it possible to remove it?
    Attached Files

    #2
    Set layoutAlign:center on the form. Note it may already be centered, but too tall - set a shorter height. In general use the Watch tab to figure these kinds of things out.

    Use setBackgroundImage("") to clear the bakcground image, or just chnages the CSS stylename in use (setStyleName())

    Comment

    Working...
    X