Browse Source

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 years ago
parent
commit
a0f50ca294
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

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

@@ -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…
Cancel
Save