Community
Participate
Working Groups
Build Identifier: 1.4M7 Using Firefox 3.0.6 is not possible anymore. Many NumberFormatExceptions like the appended one appear and the layout is totally broken. 2011-05-13 13:04:30.516:WARN:/:ERROR: Failed to execute PhaseListener before phase 'PREPARE_UI_ROOT'. java.lang.NumberFormatException: For input string: "NaN" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.eclipse.rwt.internal.textsize.MeasurementOperator.getSize(MeasurementOperator.java:157) at org.eclipse.rwt.internal.textsize.MeasurementOperator.createProbeResult(MeasurementOperator.java:115) at org.eclipse.rwt.internal.textsize.MeasurementOperator.readMeasuredFontProbeSizes(MeasurementOperator.java:108) at org.eclipse.rwt.internal.textsize.MeasurementOperator.handleStartupProbeMeasurementResults(MeasurementOperator.java:52) at org.eclipse.rwt.internal.textsize.MeasurementListener.handleStartupProbeMeasurementResults(MeasurementListener.java:54) at org.eclipse.rwt.internal.textsize.MeasurementListener.beforePhase(MeasurementListener.java:41) at org.eclipse.rwt.internal.lifecycle.PhaseListenerManager.notifyBeforePhase(PhaseListenerManager.java:72) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:181) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:87) at java.lang.Thread.run(Unknown Source) at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102) Reproducible: Always Steps to Reproduce: 1. start control demo 2. use firefox 3.0.6 to access the webinterface => many exceptions in log and broken layout
To resolve bug 264448, bug 340841 and bug 340841 we are using getBoundingClientRect (width/height) in Label.js#_computeObjectNeededDimensions and MultiCellWidget.js# _computeTextDimensions (Firefox only). In FF 3.0.x boundingClientRect width/height properties are missing. The fix checks if width/height properties exist on boundingClientRect before we are using them, otherwise use scrollWidth/scrollHeight as before. Changes are in CVS HEAD.
Today I have updated to RAP 1.4 RC2. Using FF 3.0.6 for our RAP application is no problem anymore. => bug fix verfied with 1.4 RC2