Daniel Wagner wrote:
Hi skar,

maybe I'm missing something here, but wouldn't it be best to dynamically set the text field width to the actual table column width? This worked for me, after removing the flex setting for field_encapsulator:

        tcm.addListener("widthChanged", function(e) {
          var col = e.getData().col;
          var newWidth = e.getData().newWidth;
          this.field_container.getChildren()[col].setWidth(newWidth);
        }, this);

Thanks for the snippet. However, the fields and the columns don't align now too. It seems setting the width is only a guidance and the field container's children grow further. For eg, in my laptop, the width is 1280.

APP.table.getBounds() Object left=0 top=43 width=1240 height=439
APP.field_container.getBounds() Object left=0 top=10 width=1240 height=23
tcm.getColumnWidth(0) *586*
APP.field_container.getChildren()[0].getBounds() Object left=0 top=0 width=*597* height=23
APP.field_container.getChildren()[0].getWidth()  *586

*As seen above, the first field's width is set equal to 586, the same as the table's first column, however, it occupies 597 px.

Any idea why the flex property for the fields don't give the same width as the table's resize behavior, though both have the same ratio?

cheers,
skar.

--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to