Am 16.07.2012 13:01, schrieb Martin Wittemann: > Do you still have problems even when you change the inset for the shadows? It's working, but seems kind of not consistent behaviour and much uglier to handle.
Here is the whole story. I've simplified the insets to one value. The goal was to have a shadow of 10px on each window side. In image.json I've defined the following clipping job: "${RESPATH}/visionet/source/decoration/shadow/shadow-window-active.png" : { "prefix" : "../../../decoration/shadow/shadow-window-active", "border-width" : [ 10, 10, 10, 10 ] }, and the following combine job: "${RESPATH}/visionet/decoration/shadow-window-active-tb-combined.png": { "prefix" : [ "${RESPATH}" ], "input" : [ { "prefix" : [ "${RESPATH}" ], "files" : [ "${RESPATH}/visionet/decoration/shadow/shadow-window-active-[tb]*.png" ] } ], "layout" : "vertical" }, "${RESPATH}/visionet/decoration/shadow-window-active-lr-combined.png": { "prefix" : [ "${RESPATH}" ], "input" : [ { "prefix" : [ "${RESPATH}" ], "files" : [ "${RESPATH}/visionet/decoration/shadow/shadow-window-active-[lr].png" ] } ], "layout" : "horizontal" }, In Decoration.js the corresponding shadow decorators for qx 1.6 is defined as: "shadow-window-active" : { decorator : qx.ui.decoration.Grid, style : { baseImage : "visionet/decoration/shadow/shadow-window-active.png", insets : [ 10, 10, 10, 10 ] } }, With qx 2.0.1 (and 2.1) I have to write the following to get the same result: "shadow-window-active" : { decorator : qx.ui.decoration.Grid, style : { baseImage : "visionet/decoration/shadow/shadow-window-active.png", insets : [ -10, 30, 30, -10 ] } }, Prior to version 2.0 the job was simple: use the same dimensions in the clipping job as in the decorator declaration. Now, if I want to have this working I have to perform some calculations with regard to the inner logic of widget::_applyShadow. If you have a lot of borders, shadows (for different widget states) this ends up in a lot of manual work which has to be done for the correct decorations to be displayed. Regards. Dietrich. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel