@@ -338,7 +338,7 @@ public class VCaption extends HTML { | |||
} | |||
if (captionText != null) { | |||
int textWidth = captionText.getScrollWidth(); | |||
if (BrowserInfo.get().isFF3()) { | |||
if (BrowserInfo.get().isFirefox()) { | |||
/* | |||
* In Firefox3 the caption might require more space than the | |||
* scrollWidth returns as scrollWidth is rounded down. |
@@ -48,7 +48,6 @@ import com.vaadin.terminal.gwt.client.Focusable; | |||
import com.vaadin.terminal.gwt.client.Paintable; | |||
import com.vaadin.terminal.gwt.client.UIDL; | |||
import com.vaadin.terminal.gwt.client.Util; | |||
import com.vaadin.terminal.gwt.client.VConsole; | |||
import com.vaadin.terminal.gwt.client.VTooltip; | |||
/** | |||
@@ -1100,7 +1099,7 @@ public class VFilterSelect extends Composite implements Paintable, Field, | |||
* the text to set in the text box | |||
*/ | |||
private void setTextboxText(final String text) { | |||
if (BrowserInfo.get().isGecko()) { | |||
if (BrowserInfo.get().isFF3()) { | |||
Scheduler.get().scheduleDeferred(new Command() { | |||
public void execute() { | |||
tb.setText(text); |
@@ -240,10 +240,10 @@ public class VTextField extends TextBoxBase implements Paintable, Field, | |||
setPrompting(inputPrompt != null && focusedTextField != this | |||
&& (text == null || text.equals(""))); | |||
if (BrowserInfo.get().isGecko()) { | |||
if (BrowserInfo.get().isFF3()) { | |||
/* | |||
* Gecko is really sluggish when updating input attached to dom. | |||
* Some optimizations seems to work much better in Gecko if we | |||
* Firefox 3 is really sluggish when updating input attached to dom. | |||
* Some optimizations seems to work much better in Firefox3 if we | |||
* update the actual content lazily when the rest of the DOM has | |||
* stabilized. In tests, about ten times better performance is | |||
* achieved with this optimization. See for eg. #2898 |