Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-634

keikai doesn't hide selection when not allowed selecting all cells

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 6.1.0
    • 5.10.0
    • None
    • None

      Steps to Reproduce

              <spreadsheet id="ss" width="100%" vflex="1"
                           showContextMenu="true" showSheetbar="true" showToolbar="true" showFormulabar="true"
                           showSheetTabContextMenu="true"
              />
      

      1. new a blank book from the toolbar
      2. enable sheet protection
      3. uncheck "select locked cells" and "select unlocked cells", OK

      Current Result

      selection box still visible

      Expected Result

      selection box should disappear

      Debug Information

      1. according to Spreadsheet.protect()

      		protect: function (v) {
      			var sheetCtrl = this.sheetCtrl;
      			if (sheetCtrl) {
      				sheetCtrl.fireProtectSheet(v);
      				var ls = sheetCtrl.getLastSelection();
      				if (v) {
      					if (!sheetCtrl.isRangeSelectable(ls.left, ls.top, ls.right, ls.bottom)) {
      						sheetCtrl.hideCellFocus();
      						sheetCtrl.hideCellSelection();
      					}
      				} else {
      ...}
      

      It should hide cell selection

      Workaround


            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: