Revision: 4707 http://sourceforge.net/p/vexi/code/4707 Author: clrg Date: 2014-07-30 14:05:13 +0000 (Wed, 30 Jul 2014) Log Message: ----------- Fix visible traps being unnecessarily fired
Modified Paths: -------------- branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp Modified: branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp =================================================================== --- branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp 2014-07-25 02:06:57 UTC (rev 4706) +++ branches/vexi3/org.vexi-core.main/src/main/jpp/org/vexi/core/Box.jpp 2014-07-30 14:05:13 UTC (rev 4707) @@ -2556,7 +2556,11 @@ setParentConstrain(); setParentPlace(); // fire pre-cascade visible traps - WriteTrapChain trapchain = get(SC_visible) == value ? null : fireVisibleTraps(set_display); + // REMARK visible is only relevant if the parent is visible (impossible + // to change visible state if parent.visible == false as box.visible is + // always be false) or if this box is attached to a surface + WriteTrapChain trapchain = (parent!=null && parent.get(SC_visible) == JSU.T) || (parent==null && getSurface()!=null) + ? null : fireVisibleTraps(set_display); if (set_display) { set(DISPLAY); requestReflow(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn