Each Widget has protected members for this e.g. _cachedBorderRight
Sebastian
dperez schrieb:
> Hi Sebastian,
>
> I need to know the thickness of the border. I could assume it is 1 or 2,
> but it is best to assume nothing.
>
> Old code:
>
> var border = qx.renderer.border.BorderPresets.getInstance().inset;
> var newListSettings = {
> height:
> border.getTopWidth()+this._list.getHeight()+border.getBottomWidth(),
> width:
> border.getLeftWidth()+this._list.getWidth()+border.getRightWidth(),
> border: border,
> parent: vbox
> };
>
> New code:
>
> var border = "inset";
>
> var newListSettings =
> {
> height : border.getTopWidth() + this._list.getHeight() +
> border.getBottomWidth(),
> width : border.getLeftWidth() + this._list.getWidth() +
> border.getRightWidth(),
> border : border,
> parent : vbox
> };
>
>
> Sebastian Werner wrote:
>> dperez schrieb:
>>> Hi,
>>>
>>> I'm fixing some converted code in ComboBoxEx.js to 0.7 version.
>>>
>>> Old code:
>>> var border = qx.renderer.border.BorderPresets.getInstance().inset;
>>> Converted code:
>>> var border = "inset"
>>>
>>> I need a real Border object, not a string.
>> Ok, why do you need a border object? Can you tell me what you want to do
>> with the instance?
>>
>> Sebastian
>>
>>> How do I get it?
>>> I suspect this is handled now by the theme.
>>>
>>> Regards,
>>> David
>>
>> -------------------------------------------------------------------------
>> 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