Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-658

Right click on cell only show style menupopup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.5.0 RC
    • Fix Version/s: 3.5.0
    • Component/s: ZSS Component Client
    • Security Level: Jimmy
    • Labels:
      None
    • Environment:

      Chrome 33.0

      Description

      Test with ZK 7.0.1 EE and ZSS 3.5.0.RC
      1. Focus on any cell
      2. Right click should show style menupopup and action menupopup.

      <zk>
      	<window border="none" width="100%" height="100%">
      		<spreadsheet src="/WEB-INF/books/sample.xlsx" hflex="1"
      			vflex="1" showFormulabar="true" showContextMenu="true"
      			showToolbar="true" showSheetbar="true">
      		</spreadsheet>
      	</window>
      </zk>
      

        Activity

        Hide
        vincentjian vincentjian added a comment -

        This issue only happened to ZK EE.

        Show
        vincentjian vincentjian added a comment - This issue only happened to ZK EE.
        Hide
        hawk hawk added a comment -

        Problem Description:

        Normally, spreadsheet contains only ZK PE jar. But if users put zkmax.jar in the same environment, right click on a cell, only upper part of context menu appear.

        Root Cause:

        Client ROD is enabled by default in ZK EE. A menupopup's initial DOM element is just a div without inner elements:
        <div id="_z_950" style="display:none"></div>
        It will be filled with menu items elements at onOpen event.
        The lower part of the context menu is a ZSS customized menupopup, but its onOpen event will never happen. That's the reason it won't appear when right clicking.

        Solution:

        For zss.Menupopup, turn off its ZK EE ROD by default to avoid only rendering a div.

        Another potential solution:
        try to trigger onOpen on zss.Menupopup. But menupopup will perform extra behavior that might cause bigger side effect. So we don't adopt this.

        Test :

        right click on cell, top, and left headers.

        chrome 34
        firefox 28
        IE 8, 9, 10, 11

        Show
        hawk hawk added a comment - Problem Description: Normally, spreadsheet contains only ZK PE jar. But if users put zkmax.jar in the same environment, right click on a cell, only upper part of context menu appear. Root Cause: Client ROD is enabled by default in ZK EE. A menupopup's initial DOM element is just a div without inner elements: <div id="_z_950" style="display:none"></div> It will be filled with menu items elements at onOpen event. The lower part of the context menu is a ZSS customized menupopup, but its onOpen event will never happen. That's the reason it won't appear when right clicking. Solution: For zss.Menupopup, turn off its ZK EE ROD by default to avoid only rendering a div. Another potential solution: try to trigger onOpen on zss.Menupopup. But menupopup will perform extra behavior that might cause bigger side effect. So we don't adopt this. Test : right click on cell, top, and left headers. chrome 34 firefox 28 IE 8, 9, 10, 11

          People

          • Assignee:
            hawk hawk
            Reporter:
            vincentjian vincentjian
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: