Selaa lähdekoodia

Updated semantics of isDefinedWidth so that width = 0 works as before. Added the same logic to FooterCell as well. (#7012)

svn changeset:20813/svn branch:6.7
tags/6.7.0.rc1
Leif Åstrand 12 vuotta sitten
vanhempi
commit
a0f50ca294
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

+ 2
- 2
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java Näytä tiedosto

@@ -2280,7 +2280,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
* @return true if defined, false if "natural" width
*/
public boolean isDefinedWidth() {
return definedWidth && width > 0;
return definedWidth && width >= 0;
}

public int getWidth() {
@@ -3313,7 +3313,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
* @return true if defined, false if "natural" width
*/
public boolean isDefinedWidth() {
return definedWidth;
return definedWidth && width >= 0;
}

/**

Loading…
Peruuta
Tallenna