|
|
|
[
Permlink
| « Hide
]
Amy Muntz - 29/Feb/08 04:57 PM
Max - can you take a look at this regression? Thanks.
According to svn-blame, Max made this change at r7444
Author: max
Date: 2008-03-05 14:13:01 -0800 (Wed, 05 Mar 2008) New Revision: 8182 Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as Log: Change 20080305-maxcarlson-w by maxcarlson@Roboto on 2008-03-05 13:48:58 PST in /Users/maxcarlson/openlaszlo/trunk for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Fix contextmenu for canvas, text and inputtext New Features: Bugs Fixed: Technical Reviewer: promanik QA Reviewer: a.bargull@intensis.de Doc Reviewer: (pending) Documentation: Release Notes: Details: Attach to getMCRef() for canvas and LzTextSprite instances. If this is the canvas, attache to _root.menu. Move testing inside if ($debug) case. Tests: See Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as =================================================================== --- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-03-05 21:52:19 UTC (rev 8181) +++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-03-05 22:13:01 UTC (rev 8182) @@ -1634,9 +1634,13 @@ } // [todo hqm 01-24-07] SWF-specific - if (this.owner == canvas) { - // if this is the canvas sprite + if (this.owner == canvas || this instanceof LzTextSprite) { + // check canvas for var mc = this.getMCRef(); + if (this.owner == canvas) { + // must use _root if canvas + var mc = _root; + } if (mc != null) { mc.menu = cmenu; } @@ -1651,8 +1655,10 @@ mb.menu = cmenu; } - if (mb == null && mc == null) { - if ($debug) Debug.warn("LzView.setContextMenu: cannot set menu on view %w, it has no foreground or background movieclip", this.owner); + if ($debug) { + if (mb == null && mc == null) { + Debug.warn("LzView.setContextMenu: cannot set menu on view %w, it has no foreground or background movieclip", this.owner); + } } } _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins Author: max
Date: 2008-03-05 14:23:35 -0800 (Wed, 05 Mar 2008) New Revision: 8183 Modified: openlaszlo/branches/pagan-deities/ openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/kernel/swf/LzSprite.as Log: Merged revisions 8182 via svnmerge from http://svn.openlaszlo.org/openlaszlo/trunk ....... r8182 | max | 2008-03-05 14:13:01 -0800 (Wed, 05 Mar 2008) | 24 lines Change 20080305-maxcarlson-w by maxcarlson@Roboto on 2008-03-05 13:48:58 PST in /Users/maxcarlson/openlaszlo/trunk for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Fix contextmenu for canvas, text and inputtext New Features: Bugs Fixed: Technical Reviewer: promanik QA Reviewer: a.bargull@intensis.de Doc Reviewer: (pending) Documentation: Release Notes: Details: Attach to getMCRef() for canvas and LzTextSprite instances. If this is the canvas, attache to _root.menu. Move testing inside if ($debug) case. Tests: See ....... Property changes on: openlaszlo/branches/pagan-deities ___________________________________________________________________ Name: svnmerge-integrated - /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-7950,7983,8021,8062,8144-8146,8176 + /openlaszlo/branches/paperpie:1-6504,6506-6574,6576-7135,7137-7235 /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497,6509,6661,7097,7872 /openlaszlo/trunk:1-7950,7983,8021,8062,8144-8146,8176,8182 Modified: openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/kernel/swf/LzSprite.as =================================================================== --- openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-03-05 22:13:01 UTC (rev 8182) +++ openlaszlo/branches/pagan-deities/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-03-05 22:23:35 UTC (rev 8183) @@ -1628,9 +1628,13 @@ } // [todo hqm 01-24-07] SWF-specific - if (this.owner == canvas) { - // if this is the canvas sprite + if (this.owner == canvas || this instanceof LzTextSprite) { + // check canvas for var mc = this.getMCRef(); + if (this.owner == canvas) { + // must use _root if canvas + var mc = _root; + } if (mc != null) { mc.menu = cmenu; } @@ -1645,8 +1649,10 @@ mb.menu = cmenu; } - if (mb == null && mc == null) { - if ($debug) Debug.warn("LzView.setContextMenu: cannot set menu on view %w, it has no foreground or background movieclip", this.owner); + if ($debug) { + if (mb == null && mc == null) { + Debug.warn("LzView.setContextMenu: cannot set menu on view %w, it has no foreground or background movieclip", this.owner); + } } } _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins (pagan-deities branch build r8311 - 4.0.11 RC)
Ran the testcase and checked with Andre. Closing. (trunk 4 build r8276)
Ran the testcase and checked with Andre. Closing. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||