Never mind, I figured it out. I broke out the itemRenderer to a external
file, for manageability reasons, then called the width of the parent item by
parentDocument.<itemname>.width.

It really pays to explore the variables tab in the FB debugger....

On Mon, Aug 11, 2008 at 11:06 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm having some issues controlling the width of a text item in an inline
> renderer for a datagrid cell. In the itemRenderer I've got a Number element
> set to be the width of the outerDocument's datagrid.width (because Text
> doesn't like "100%' as a width, it only seems to accept integers). The
> problem comes when I want to account for the padding in the renderer. When I
> change the calculation of the number from
> "outerDocument.contentDatagrid.width" to
> "outerDocument.contentDatagrid.width - 20" the datagrid blows out the bottom
> of the panel it's in. If you run the code below you'll see the datagrid is
> correctly bound inside the browser window. But if you change line 92 to
> subtract any amount from the width the datagrid blows out the bottom of the
> panel.
>
> So, the question is what's going on here? I'd like the text to wrap
> dynamically as the browser window resizes but I'd also like the datagrid to
> stay inside the panel. Any suggestions? Thanks in advance.
>


-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood

Reply via email to