Aha! Thanks Gabriel, that's fixed it. John
On 19/08/2011 12:19, "Gabriel Munteanu" <[email protected]> wrote: >Hi, > >You are modifying the style for the toolbar-button selector. >here: >"mce-toolbar-button": { > > include: "toolbar-button", > > style: function(states, style) { > > style.margin = [2, 0]; > > return style; > > } > > } >The style parameter is a reference to the toolbar-button syle, and you ar >emodifying its property 'margin'. >what you have to do is to return a new json object {}, with your own >property styles [margin, padding, etc...] or, in the case you want to >inherit from the theme, clone the style object before modifying it: > > "mce-toolbar-button": { > > include: "toolbar-button", > > style: function(states, style) { > > var mceStyle = qx.lang.Object.clone(style); > > mceStyle.margin = [2, 0]; > > return mceStyle; > > } > > } > >cheers, >Gabi > >-- >View this message in context: >http://qooxdoo.678.n2.nabble.com/Problems-setting-appearance-with-an-inclu >de-Simple-theme-only-tp6700041p6702785.html >Sent from the qooxdoo mailing list archive at Nabble.com. > >-------------------------------------------------------------------------- >---- >Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >user administration capabilities and model configuration. Take >the hassle out of deploying and managing Subversion and the >tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 >_______________________________________________ >qooxdoo-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
