I'm of the opinion that this behavior is not great: If someone creates a
resizer and doesn't want to resize, they can set resizeableWest to false
or whatever. If they want to set the height to a specific size and then
resize, the resizer should become 'auto' in the direction they are
resizing so it affects the parent layout properly.
Here is a simple change that implements this: in Resizer.js modify the
changeWidth and changeHeight functions as follows:
_changeWidth: function(value)
{
var child = this.getChildren()[0];
child && child.setWidth(value);
this.setWidth('auto')
},
_changeHeight: function(value)
{
var child = this.getChildren()[0];
child && child.setHeight(value);
this.setHeight('auto')
},
Does anyone see any problems with this behavior or am I missing a
reasonable way to do this in my code?
David
johnl wrote:
> I'm trying to save the dimensions of a resizer object so when a user
> returns to the page his or her panes are the same size. It looks like
> boxHeight is the appropriate thing to save, but if I do a
> setHeight(savedBoxHeight) on the resizer, it no longer works correctly
> in the layout - I can resize it, but it doesn't affect its parents.
>
> Is there a better way to do this?
>
> Thanks,
>
> David Lee
>
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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