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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Equivalent-to-BorderPresets-in-0.7--tf3709495.html#a10376869
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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