Hi Dietrich,

this is definitely a bug. (I remember that RĂ¼diger or Ralf have reported 
something comparable some time ago, too.)

After some investigation the result is that this is a layout bug. After 
some time we have found again a bug. Yeah. The bad news is that this 
isn't fixable in this version, too. We need to wait for 0.8 for this.

However there is a work-around. With the current trunk >= 8268 is should 
be possible to add a minWidth definition to jump force the execution of 
the _layoutPost handler defined in the text-field. For example a 
setMinWidth("1%") has worked well for me. It must be something relative 
to the parent size - otherwise it won't work, too.

This adds a bit overhead, too. Another solution would be to replace the 
left/right combination with a percent definition. This is however not 
possible in all cases.

Please open a bug report for this and add a dependency to bug #20. Thank 
you for your support.

Sebastian



Dietrich Streifert schrieb:
> Hello List,
> 
> I have a CanvasLayout which has the following properties set:
> 
> myCanvasLayout.set({left:20, right:20});
> 
> CanvasLayout contains a TextField as a child which has the following 
> properties set:
> 
> myTextField({left:0, right:49});
> 
> When myCanvasLayout gets resized (eg. by resizing the parent of 
> myCanvasLayout) myTextField also gets resized, but the visible width 
> which means the characters displayed in the TextField get cut at 120px.
> This seems to be the value which is returned by _computePrefferedInnerWidth.
> 
> One Solution would be to track the width change of the CanvasLayout by 
> some event or modifier and call myTextField.setWidth() with the new value.
> 
> Is TextField broken or is this by design?
> 
> Any ideas?
> 
> Thank you.
> 
> Regards.
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to