aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2009-10-06 09:56:44 +0000
committerHenri Sara <henri.sara@itmill.com>2009-10-06 09:56:44 +0000
commitcf7384268ffccb9fbb8cfac8bd61cd3207017d51 (patch)
tree283bf4c29d2cbe4ac7818a18c0a4ccbd1fe00f10 /src
parent9dfedad4263502047b788816004a72fd6f775c9f (diff)
downloadvaadin-framework-cf7384268ffccb9fbb8cfac8bd61cd3207017d51.tar.gz
vaadin-framework-cf7384268ffccb9fbb8cfac8bd61cd3207017d51.zip
#3444 Missing components in Opera
svn changeset:9096/svn branch:6.1
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VOrderedLayout.java4
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/layout/ChildComponentContainer.java19
2 files changed, 12 insertions, 11 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOrderedLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VOrderedLayout.java
index b37c6abde6..282136383d 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VOrderedLayout.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VOrderedLayout.java
@@ -117,7 +117,7 @@ public class VOrderedLayout extends CellBasedLayout {
relativeSizeComponentUIDL.add(childUIDL);
} else {
if (isDynamicWidth()) {
- childComponentContainer.renderChild(childUIDL, client, 0);
+ childComponentContainer.renderChild(childUIDL, client, -1);
} else {
childComponentContainer.renderChild(childUIDL, client,
activeLayoutSize.getWidth());
@@ -166,7 +166,7 @@ public class VOrderedLayout extends CellBasedLayout {
UIDL childUIDL = relativeSizeComponentUIDL.get(i);
if (isDynamicWidth()) {
- childComponentContainer.renderChild(childUIDL, client, 0);
+ childComponentContainer.renderChild(childUIDL, client, -1);
} else {
childComponentContainer.renderChild(childUIDL, client,
activeLayoutSize.getWidth());
diff --git a/src/com/vaadin/terminal/gwt/client/ui/layout/ChildComponentContainer.java b/src/com/vaadin/terminal/gwt/client/ui/layout/ChildComponentContainer.java
index 53065caf9f..ccda36ff8e 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/layout/ChildComponentContainer.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/layout/ChildComponentContainer.java
@@ -40,7 +40,7 @@ public class ChildComponentContainer extends Panel {
private int captionHeight = 0;
/**
- *
+ *
* Padding added to the container when it is larger than the component.
*/
private Size containerExpansion = new Size(0, 0);
@@ -189,19 +189,20 @@ public class ChildComponentContainer extends Panel {
/*
* Must remove width specification from container before rendering to
* allow components to grow in horizontal direction.
- *
+ *
* For fixed width layouts we specify the width directly so that height
* is automatically calculated correctly (e.g. for Labels).
*/
/*
* This should no longer be needed (after #2563) as all components are
* such that they can be rendered inside a 0x0 DIV.
+ *
+ * The exception seems to be complex components (Tree and Table) on
+ * Opera (#3444).
*/
- // if (fixedWidth > 0) {
- // setLimitedContainerWidth(fixedWidth);
- // } else {
- // setUnlimitedContainerWidth();
- // }
+ if (fixedWidth < 0 && BrowserInfo.get().isOpera()) {
+ setUnlimitedContainerWidth();
+ }
((Paintable) widget).updateFromUIDL(childUIDL, client);
}
@@ -610,7 +611,7 @@ public class ChildComponentContainer extends Panel {
/**
* Return true if the size of the widget has been specified in the selected
* orientation.
- *
+ *
* @return
*/
public boolean widgetHasSizeSpecified(int orientation) {
@@ -653,7 +654,7 @@ public class ChildComponentContainer extends Panel {
/**
* Sets the normalized expand ratio of this slot. The fraction that this
* slot will use of "excess space".
- *
+ *
* @param expandRatio
*/
public void setNormalizedExpandRatio(double expandRatio) {