Folks'es,
I have a very strange problem of browser dependency! The exact same code creates absolutely weird results, depending on the browser I use to view my app:
1. IE 8 ist ok
2. Firefox 3.6.3 is ok
3. Chrome 4.1.249.1045 not ok
4. Opera 10.51 not ok
5. Safari 4.0.5 not ok
see the appr. attachments.
Everything runs on the same platform (Vista x64) against the same application, built withd GWT 2.0.3 and SmartGWT 2.1.
Following are the snippets of code, that draw the part in question:
I have a very strange problem of browser dependency! The exact same code creates absolutely weird results, depending on the browser I use to view my app:
1. IE 8 ist ok
2. Firefox 3.6.3 is ok
3. Chrome 4.1.249.1045 not ok
4. Opera 10.51 not ok
5. Safari 4.0.5 not ok
see the appr. attachments.
Everything runs on the same platform (Vista x64) against the same application, built withd GWT 2.0.3 and SmartGWT 2.1.
Following are the snippets of code, that draw the part in question:
Code:
public void onModuleLoad() { panel = new VLayout(); panel.setSize("100%", "100%"); panel.addMember(topPanel()); panel.draw(); : } private HLayout topPanel() { Img icsLogo = new Img("logoDotted.png"); icsLogo.setWidth(175); icsLogo.setHeight(70); userLabel = new Label(); userLabel.setContents("<i>CONTINUITY</i> user: "); userLabel.setStyleName("icsUserPanel"); userLabel.setHeight(20); userLabel.setWrap(false); userLabel.setIcon("person.png"); userLabel.setExtraSpace(20); IButton logoutButton = new IButton("Log out"); logoutButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() { @Override public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) { mainLayout.hide(); mainLayout.markForDestroy(); loginService.logout(new AsyncCallback<Void>() { @Override public void onFailure(Throwable t) { SC.say(constants.fatal() + ": " + t); } @Override public void onSuccess(Void v) { login.manualLogin(false); } }); } }); HLayout userInfo = new HLayout(); userInfo.setStyleName("icsUserPanel"); userInfo.setLayoutAlign(VerticalAlignment.CENTER); userInfo.setAutoHeight(); userInfo.addMember(userLabel); userInfo.addMember(logoutButton); VLayout selections = new VLayout(); selections.setAutoHeight(); selections.setAutoWidth(); selections.addMember(languageSelector); selections.addMember(new SkinSelector()); HLayout hLayout = new HLayout(); hLayout.setLayoutAlign(VerticalAlignment.CENTER); hLayout.setWidth100(); hLayout.setHeight(80); hLayout.setStyleName("icsPanel"); hLayout.addMember(icsLogo); hLayout.addMember(new Layout()); hLayout.addMember(userInfo); hLayout.addMember(new Layout()); hLayout.addMember(selections); return hLayout; }
Comment