Results 1 to 3 of 3

Thread: issue with column layout within vbox

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    27

    Default issue with column layout within vbox

    encountering an issue in FF where the column layout container is sometimes sized incorrectly. very strangely, in the example below, the issue only arises when certain values of the fieldset title are used. for example, a title of "X" on the fieldSet causes issue whereas "D" does not.

    FireFox 3.6.3
    Extjs 3.2RC1

    Code:
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" type="text/css" href="ext-all.css">
        <script type="text/javascript" src="ext-base-debug.js"></script>
        <script type="text/javascript" src="ext-all-debug.js"></script>
        <script type="text/javascript">
        Ext.onReady(function(){
    
            var title = 'x';        
            var config = {title: title, height: 300, columnWidth: 0.5};
            var p1 = new Ext.form.FieldSet(config);
            var p2 = new Ext.form.FieldSet(config);
            
            var row = new Ext.Panel({
                layout: 'column',
                items: [p1, p2],
                bodyStyle: 'border: 5px solid green',
            });
            
            viewport = new Ext.Viewport({
                layout: {
                    type: 'vbox',		
                    align: 'stretch'
                },
                items: row
            });
        });
        </script>
    </head>
    <body>
    </body>
    </html>
    Attached Images Attached Images

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    The code you posted doesn't really make a lot of sense. Why use a vbox layout with only a single child item?

    I'd suggest reviewing the code and choosing something more appropriate.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    27

    Default

    I simplified the layout to demonstrate the problem. the issue arose in a more complex layout that required both the vbox and column layout, and which worked fine up to extjs 3.03.

    how can this not be considered a bug?
    Last edited by gordon; 8 Apr 2010 at 1:33 PM. Reason: clarity

Posting Permissions

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