[ http://issues.apache.org/jira/browse/XAP-192?page=comments#action_12455503 ] Rob Gagne commented on XAP-192: -------------------------------
This is actually two issues - the visible tag misbehaving and the 100% CPU issue on IE I will file a second bug for the 100% CPU issue > XModify and a Macro with an argument stops working after a few times > -------------------------------------------------------------------- > > Key: XAP-192 > URL: http://issues.apache.org/jira/browse/XAP-192 > Project: XAP > Issue Type: Bug > Components: XModify, Macros > Environment: Firefox 2.0 and IE 7.0 > Reporter: Rob Gagne > > I have a macro defined that takes an argument to hide/show a pane. This > works, however I am seeing two issues: > 1. In both Firefox and IE if I press + to show and then - to hide in a circle > it works fine. However if I press - to hide twice or more, I can no longer > show the panel. > 2. In IE 7 pressing the button spikes the CPU to 100% for a few seconds > I have defined this Macro: > <macro:macro xmlns:macro="http://openxal.org/core/macro" id="toggle" > name="toggle"> > <xu:modifications xmlns:xu="http://openxal.org/core/xmodify"> > <xu:set-attribute select="id('extra')"> > <xu:attribute name="visible" value="{0}"/> > </xu:set-attribute> > </xu:modifications> > </macro:macro> > With these panes: > <horizontalBoxPane margin="5px 0px 5px 0px" width="800px" > borderStyle="solid" > borderWidth="0px 0px 1px 0px" borderColor="black"> > <label height="20px" text="Optionally Add Extra Payments" > richText="true" width="140px"/> > <button margin="3px" height="12px" text="+" width="12px" > onCommand="macro:toggle.execute('true')"/> > <button margin="3px" height="12px" text="-" width="12px" > onCommand="macro:toggle.execute('false')"/> > </horizontalBoxPane> > <verticalBoxPane id="extra" visible="false"> > <horizontalBoxPane padding="0px 0px 5px 0px"> > <label height="20px" text="Adding an extra" width="150px"/> > <textField height="20px" text="TextField" width="80px"/> > <label height="20px" margin="0px 0px 0px 5px" text="every month to > your payment" > width="200px"/> > </horizontalBoxPane> > <horizontalBoxPane padding="0px 0px 5px 0px"> > <label height="20px" text="Adding" width="150px"/> > <textField height="20px" text="TextField" width="80px"/> > <label height="20px" margin="0px 0px 0px 5px" text="as a one-time > mortgage payment in" > width="200px"/> > </horizontalBoxPane> > </verticalBoxPane> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
