Having SVGs is really nice, because you don't have to act with high DPI
devices. For that reason I'm using SVG images as (also button) icons.

The only problems I had is that the generator does not extract the SVG
dimensions for the included resource. So you'll get an exception when qx
tries to do its layouting.

You can work around this by specifying the desired dimension to the
"icon" child control directly after you've created the button:

  var foo = new qx.ui.form.Button("foo", "wherever/bar.svg");
  foo.getChildControl("icon").set({width: 64, height: 64});

The best thing would be to add support for extracting the SVG stored
dimensions in the generator - or if it's already there, check why it's
not working. Sadly I had no time to dig into that yet...

Am Sonntag, den 14.12.2014, 17:42 +0800 schrieb paragasu:
> Is it possible to use svg as icon for button?
> I wonder if it is possible to use icon fonts & how to accomplish this
> in qooxdoo?
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________ qooxdoo-devel mailing list 
> qooxdoo-devel@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to