Browse Source

Merged bugfixes from 6.5

svn changeset:18006/svn branch:6.6
tags/6.7.0.beta1
Artur Signell 13 years ago
parent
commit
3d1faa367a

+ 1
- 1
src/com/vaadin/terminal/gwt/client/VCaption.java View File

@@ -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.

+ 1
- 2
src/com/vaadin/terminal/gwt/client/ui/VFilterSelect.java View File

@@ -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);

+ 3
- 3
src/com/vaadin/terminal/gwt/client/ui/VTextField.java View File

@@ -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

Loading…
Cancel
Save