IRC Log Viewer » #firebreath » 2012-08-04

IRC Nick Time (GMT-7) Message
Gordon_LN 06:08 To share my final solution wth my hide/show plugin issue with dojo + chrome (style display=none):
The approach of handling it within the plugin works, _EXCEPT_ the registered events are also lost, so is not a viable solution.
So the solution in js looks like this:
hook dojos "style" replace function: aspect.around(domClass, "replace", function (origFunc) {...
If the node in question is my plugin node: if (node.id == context.id) { ...
override the style settings (I used dojo.style(node, "height", "0px"))
otherwise call orig function: return origFunc(node, addStyle, removeStyle);
(and do somthing similar for the restore style "dijitVisible"
(dojo.style(node, "height", "100%"))
(which is a variant on the way taxilian suggested day one.)