Announcement

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

    Browser Zoom on Label Widgets behaves diffrently in IE9 compared to other browsers

    Hi,

    In my testing on a SmartGWT 5.1 release build, I noticed that when I increase/decrease the browser zoom level of my app, label widgets zoom in and out differently in IE9 than in other browsers. In IE9 it seems the whole Label canvas expands with the zoom level rather than just the text as it does in the browsers. To reproduce I have include a standalone test case that shows this behavior. Just bring up the test case in a browser, play with browser zoom level and observe. Is this by design, or is this a bug?

    Tested using SmartGWT5.1d (build 2015-05-21) and GWT 2.6.1

    Thanks,
    Mike

    Code:
    public void onModuleLoad() {
    
            VLayout layout = new VLayout();
            layout.setWidth100();
            layout.setHeight100();
            layout.setLayoutMargin(5);
    		layout.setAlign(VerticalAlignment.CENTER);
    		layout.setDefaultLayoutAlign(Alignment.CENTER);
    
            VLayout layout2 = new VLayout();
    
            layout2.setBorder("1px solid black");
            layout2.setWidth("40%");
    		layout2.setHeight("50%");
    
            Label lbl = new Label();
            lbl.setHeight("30%");
            lbl.setWidth100();
            lbl.setContents("Not a Testing123 Company subscriber? Call +1 (877) 123-1234 to learn about your access options.");
    
            layout2.addMember(lbl);
            layout.addMember(layout2);
    
            layout.draw();
    
        }

    #2
    IE9 native zoom is very badly broken (in terms of how the browser implements it).

    It's only possible to support native browser zoom on some versions of some browsers, with significant caveats. The details are documented here.

    Comment

    Working...
    X