|
|
|
|
|
|
|
|
private int captionHeight = 0; |
|
|
private int captionHeight = 0; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* |
|
|
|
|
|
|
|
|
* |
|
|
* Padding added to the container when it is larger than the component. |
|
|
* Padding added to the container when it is larger than the component. |
|
|
*/ |
|
|
*/ |
|
|
private Size containerExpansion = new Size(0, 0); |
|
|
private Size containerExpansion = new Size(0, 0); |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Must remove width specification from container before rendering to |
|
|
* Must remove width specification from container before rendering to |
|
|
* allow components to grow in horizontal direction. |
|
|
* allow components to grow in horizontal direction. |
|
|
* |
|
|
|
|
|
|
|
|
* |
|
|
* For fixed width layouts we specify the width directly so that height |
|
|
* For fixed width layouts we specify the width directly so that height |
|
|
* is automatically calculated correctly (e.g. for Labels). |
|
|
* is automatically calculated correctly (e.g. for Labels). |
|
|
*/ |
|
|
*/ |
|
|
/* |
|
|
/* |
|
|
* This should no longer be needed (after #2563) as all components are |
|
|
* This should no longer be needed (after #2563) as all components are |
|
|
* such that they can be rendered inside a 0x0 DIV. |
|
|
* 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); |
|
|
((Paintable) widget).updateFromUIDL(childUIDL, client); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Return true if the size of the widget has been specified in the selected |
|
|
* Return true if the size of the widget has been specified in the selected |
|
|
* orientation. |
|
|
* orientation. |
|
|
* |
|
|
|
|
|
|
|
|
* |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public boolean widgetHasSizeSpecified(int orientation) { |
|
|
public boolean widgetHasSizeSpecified(int orientation) { |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Sets the normalized expand ratio of this slot. The fraction that this |
|
|
* Sets the normalized expand ratio of this slot. The fraction that this |
|
|
* slot will use of "excess space". |
|
|
* slot will use of "excess space". |
|
|
* |
|
|
|
|
|
|
|
|
* |
|
|
* @param expandRatio |
|
|
* @param expandRatio |
|
|
*/ |
|
|
*/ |
|
|
public void setNormalizedExpandRatio(double expandRatio) { |
|
|
public void setNormalizedExpandRatio(double expandRatio) { |