Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    setTitle method different behavior on IE and FF

    Be sure your post includes:

    Version 3.0:SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
    and
    Version 3.1d:SNAPSHOT_v8.3d_2012-07-18/LGPL Development Only (built 2012-07-18)


    Browsers: FF 13.0.1, IE9, chrome 21.0.1180.75 m

    Sample code:
    Code:
        IButton resizeButton = new IButton();  
        resizeButton.setWidth(150);  
    
    
        VLayout buttons = new VLayout();  
        buttons.setMembersMargin(10);  
        buttons.addMember(resizeButton);  
    
        layout.addMember(buttons);  
        layout.draw();  
    }
    on version3.0 (IE, FF, Chrome)it will give an empty title but in 3.1 (FF, Chrome) the appeared title will be "Untitled Button" but in IE9 it will have an empty title, same code have different behavior on different browsers.

    And the same thing appears on SectionStack and SectionStackSection.

    Code:
        SectionStack sectionStack = new SectionStack();  
        sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);  
        sectionStack.setWidth(300);  
        sectionStack.setHeight(350);  
    
    
        SectionStackSection section2 = new SectionStackSection();  
        section2.setExpanded(true);  
        section2.setCanCollapse(true);  
    
        section2.addItem(help1);  
        sectionStack.addSection(section2);  
        SectionStackSection section3 = new SectionStackSection("Help 2");  
        section3.setExpanded(true);  
        section3.setCanCollapse(true);  
        section3.addItem(help2);  
        sectionStack.addSection(section3);  
    
        HLayout layout = new HLayout();  
        layout.addMember(sectionStack);  
        layout.draw();  
    }  
    
    class HelpCanvas extends Canvas {  
        private String contents =  "<b>Severity 1</b> - Critical problem<br>System is unavailable in production or " +  
              "is corrupting data, and the error severely impacts the user's operations." +  
              "<br><br><b>Severity 2</b> - Major problem<br>An important function of the system " +  
              "is not available in production, and the user's operations are restricted." +  
              "<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +  
              "system occurs, but it does not seriously affect the user's operations.";  
    
        public HelpCanvas(String id) {  
            setID(id);  
            setPadding(10);  
            setOverflow(Overflow.AUTO);  
            setContents(contents);  
        }  
    }
    Last edited by akhader; 14 Aug 2012, 03:21.
Working...
X