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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Normal
    • 5.4.0FL
    • Affects Version/s: 5.10.0
    • Component/s: None
    • 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


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

              Created:
              Updated: