1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    1
    Vote Rating
    0
    StrictJS is on a distinguished road

      0  

    Default Unanswered: hbox with two images side-by-side not scaling correctly

    Unanswered: hbox with two images side-by-side not scaling correctly


    I am attempting to place two images side-by-side, but its not working out as expected: http://new.senchafiddle.com/#/zNPyQ/

    Can anybody explain what im doing wrong?

  2. #2
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,684
    Answers
    130
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    like this?
    Code:
    Ext.Loader.setConfig({
        enabled : true
    });
    
    Ext.application({
        name : ('SF' || 'SenchaFiddle'),
        
        launch : function() {
            Ext.create('Ext.Container', {
                fullscreen: true,
                layout: 'hbox',
                items: [
                    {
                        xtype: 'image',
                        src:'http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Ski_trail_rating_symbol-blue_square.svg/600px-Ski_trail_rating_symbol-blue_square.svg.png',
                        flex: 1
                    },
                    {
                        xtype: 'image',
                        src:'http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Ski_trail_rating_symbol-blue_square.svg/600px-Ski_trail_rating_symbol-blue_square.svg.png',
                        flex: 1
                        
                    }
                ]
            });
        }
    });
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 1

Tags for this Thread