1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    19
    Vote Rating
    1
    honggang.z.zhu is on a distinguished road

      0  

    Default resized a element when window is resized

    I need to create a combobox on a container dynamicly , I have to use 'renderTo' atrribute , I want this combobox to be resized when the contianer is resized. what should i do?



  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    136
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    Put the combobox in the container/panel and use a layout manager. You will probably be looking for the 'anchor' layout.

    How are you resizing the Container/Panel? Is this what you are using renderTo on? You will *NOT* be able to render the combobox with renderTo and take advantage of our layout manager.
    Aaron Conran
    @aconran

Thread Participants: 1