Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1558 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,378
    Vote Rating
    300
    ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light

      0  

    Default Problem with Buttons and setting tooltips

    This component:

    x1.png

    which generates this code:

    Code:
    Ext.define('AG.view.Cabecera', {
        extend: 'Ext.container.Container',
        alias: 'widget.cabecera',
    
    
    
    
        initComponent: function() {
            var me = this;
    
    
            Ext.applyIf(me, {
                items: [
                    {
                        xtype: 'image',
                        height: 28,
                        width: 394,
                        src: './img/titulo-394x28.png'
                    },
                    {
                        xtype: 'toolbar',
                        items: [
                            {
                                xtype: 'label',
                                itemId: 'actual',
                                style: '{font-weight:bold;}',
                                text: 'Moviclub'
                            },
                            {
                                xtype: 'tbfill'
                            },
                            {
                                xtype: 'button',
                                itemId: 'contrasenabtn',
                                icon: './img/pass16.png',
                                tooltip: {
                                    text: 'Cambiar contraseña'
                                }
                            },
                            {
                                xtype: 'tbseparator'
                            },
                            {
                                xtype: 'button',
                                itemId: 'cerrarbtn',
                                icon: './img/exit16.png',
                                text: 'Cerrar sesión'
                            }
                        ]
                    }
                ]
            });
    
    
            me.callParent(arguments);
        }
    });
    Renders this way:

    x2.png

    Images exists in the application server.

    Since this view part is used by other views, almost all the time other views dont renderer correctly or just dont render at all.

    Build 311.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    135
    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

    Thanks for the report, we have a ticket regarding images and how to load them in the context of the webserver which you will running them from.

    For example,
    ./img/titulo-394x28.png

    Should attempt to load
    http://localhost/img/titulo-394x28.png

    If your urlPrefix is set to the default of http://localhost/
    Aaron Conran
    @aconran

  3. #3
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,378
    Vote Rating
    300
    ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light

      0  

    Default

    The problem is not that the images wont show, the problem is that the component is not rendered correctly.

    Is a container with image and toolbox but you can see in the image I put in the post that is rendered multiple times.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  4. #4
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,378
    Vote Rating
    300
    ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light ssamayoa is a glorious beacon of light

      0  

    Default Is not the imgaes, is tooltip object

    Follow up:

    I find whats the problem with the bad rendering in Designer: tooltip object in button.

    Insted of just set a string in the tooltip of a button I setted and object, ex:

    { text : "Cambiar contraseña" }

    I'm attaching the test case project.

    Images haves nothing to do with the bad rendering.

    Regards.
    Attached Files
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  5. #5
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,485
    Vote Rating
    135
    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

    Thanks, this project will help us fix the bug.
    Aaron Conran
    @aconran

Thread Participants: 1