Are you talking about `display: visible`? Maybe you are getting
confused between the class style (which you quoted below) and the
local div style (which you are presumably toggling)?
I would think you want the `lzcanvascontextdiv` class style to be:
display: 'hidden'
which will become the default for the div, and then when you need to
find the context menu, you will temporarily say:
LzSprite.__rootsprite.__LZcontextcontainerdiv.style.display =
'visible';
look up the menu, and then set it back:
LzSprite.__rootsprite.__LZcontextcontainerdiv.style.display = '';
Setting the local style to the empty string means that the class style
will prevail.
On 2009-08-27, at 19:08EDT, Henry Minsky wrote:
> If I make the initial condition of the the lzcanvascontextdiv be
> visible
> instead of hidden, then the change works, but I can't figure out why
> that
> makes it work
>
>
> lzcanvascontextdiv: {
> // placed in front of canvas and clickdiv, but invisible
> // unless right click is being handled
> zIndex: 200000,
> position: 'absolute',
> overflow: 'hidden'
> },
>
>
> On Thu, Aug 27, 2009 at 5:37 PM, Max Carlson <[email protected]>
> wrote:
>
>> You may just want to go back to the older changeset. It's not as
>> elegant
>> but it did work...
>>
>> ------------------------------
>> From: Henry Minsky <[email protected]>
>> Sent: Thursday, August 27, 2009 11:28 AM
>> To: Max Carlson <[email protected]>
>> Cc: [email protected]; [email protected]
>> Subject: Re: For Review: Change 20090827-hqm-4 Summary: fix for
>> flickering
>> swfs when right click menu is opened
>>
>>
>> oh crud, I'll see if I can diagnose that on my webtop workspace
>>
>> On Thu, Aug 27, 2009 at 12:44 PM, Max Carlson
>> <[email protected]<m...@laszlosystemscom>
>>> wrote:
>>
>>> Not approved. This change breaks webtop - none of the custom
>>> context
>>> menus work: the message headers, mail folders, and contact
>>> entries...
>>>
>>>
>>> Henry Minsky wrote:
>>>
>>>>
>>>>
>>>> Change 20090827-hqm-4 by [email protected] on 2009-08-27
>>>> 12:00:19 EDT
>>>> in /Users/hqm/openlaszlo/trunk-clean
>>>> for http://svn.openlaszlo.org/openlaszlo/trunk
>>>>
>>>> Summary: fix for flickering swfs when right click menu is opened
>>>>
>>>> New Features:
>>>>
>>>> Bugs Fixed: LPP-8405
>>>>
>>>> Technical Reviewer: max
>>>> QA Reviewer: ptw
>>>> Doc Reviewer: (pending)
>>>>
>>>> Documentation:
>>>>
>>>> Release Notes:
>>>>
>>>> Details:
>>>>
>>>> + we keep the contextmenu div hidden but on top of canvas content
>>>> and
>>>> clickdivs. When a right click is handled, we make the
>>>> contextmenudiv
>>>> visible ( instead of hiding the canvas content and click divs)
>>>>
>>>> + close any open context menu when mouseup or mousedown event is
>>>> sent, to
>>>> follow swf menu behavior
>>>>
>>>>
>>>> Tests:
>>>>
>>>> + test case from bug report, does not flicker.
>>>> + test/contextmenu/lpp-6980.lzx , check that proper context menu
>>>> shows
>>>> up, regardless of whether other
>>>> opaque views are layered on top, check that embedded swf in
>>>> <html> tag
>>>> does not flicker when
>>>> context menu is opened
>>>>
>>>> Files:
>>>> M WEB-INF/lps/lfc/k
>>>
>>>
>>
>> [The entire original message is not included]
>>
>
>
>
> --
> Henry Minsky
> Software Architect
> [email protected]
> _______________________________________________
> Laszlo-reviews mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews