Results 1 to 4 of 4

Thread: [OPEN-1457] Combobox setHeight method does not work

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [OPEN-1457] Combobox setHeight method does not work

    In short: changing the height of a combobox (using setHeight()) does not work. I understand the limitations of the trigger image (can replace that) but the combobox just does not react at all...

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Posts
    751

    Default

    Can you post a test case by following this thread. Thanks.

    http://www.sencha.com/forum/showthre...-the-Bug-Forum

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2010
    Location
    Rotterdam, The Netherlands
    Posts
    422

    Default

    Caius Caesar, if you want this to be fixed in the next version of Ext, then post the test case that demonstrates the error. The dev team should be able to copy paste it in their browser, reproduce the error and fix it (if indeed broken).

  4. #4

    Default

    Sorry for the delay, this code demonstrates it:

    Code:
    <html>
    <head>
        <title>Testpage Ext</title>
        <link rel="stylesheet" type="text/css" href="../../ext/resources/css/ext-all.css" />
        <script type="text/javascript" src="../../ext/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../../ext/ext-all-debug.js"></script>
        <!-- EXAMPLES -->
        <script type="text/javascript">
            function CreateForm() {
     
                var viewport = new Ext.Viewport({
                    layout: 'border'
                , items: [
                {
                    id: 'myCenterPanel',
                    region: 'center',
                    layout: 'absolute',
                    autoScroll: true
                }
                    ]
                });
     
                var increaseSize = new Ext.Button({
                    text: 'increase Size',
                    x: 5,
                    y: 5,
                    width: 100
                });
                var decreaseSize = new Ext.Button({
                    text: 'decrease Size',
                    x: 5,
                    y: 30,
                    width: 100
                });
                var combo = new Ext.form.ComboBox({
                    store: ['test', 'foo', 'bar'],
                    x: 200,
                    y: 5,
                    width: 100
                });
     
                Ext.getCmp('myCenterPanel').add(increaseSize);
                Ext.getCmp('myCenterPanel').add(decreaseSize);
                Ext.getCmp('myCenterPanel').add(combo);
     
                increaseSize.on("click", function (e) {
                    combo.setHeight(combo.getHeight() + 2);
                });
                decreaseSize.on("click", function (e) {
                    combo.setHeight(combo.getHeight() - 2);
                });
     
     
                viewport.doLayout();
            }
     
            Ext.onReady(function () {
                CreateForm();
            });
        </script>
    </head>
    <body>
    </body>
    </html>

Similar Threads

  1. Replies: 0
    Last Post: 3 Dec 2010, 4:50 AM
  2. Replies: 4
    Last Post: 30 Nov 2010, 4:41 AM
  3. [CLOSED] cmp.el.setHeight() breaks cmp.setHeight()
    By NeoVanGoth in forum Ext 3.x: Bugs
    Replies: 3
    Last Post: 9 Apr 2010, 12:08 PM
  4. setHeight doesn't work in IE7
    By rswafford in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 11 May 2007, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •