4 Replies Latest reply on Apr 11, 2016 8:47 AM by Peter Kahrel

    ScriptUi listbox items missing check marks when preceeded by a dialog window

    McShaman Level 1

      I have been having a persistent issue that I have only just been able to reproduce with simple enough code to post. What I am finding is that check marks in list items do not show up if there was a dialog box immediately preceding them (I am running Mac OS and have not tested on Windows yet)

       

      file = File.openDialog();
      
      var w = new Window('dialog', undefined, undefined, {
          resizeable: true
        });
      
        var myList = w.add ('listbox');
        myList.preferredSize = [300, 400];
      
        var item;
        for (var i = 0; i < 200; i ++) {
        item = myList.add('Item', i);
        item.checked = true;
        }
      
        w.onResizing = w.onResize = function() {
        this.layout.resize();
        }
      
      w.show ();
      

       

      If I click in the list box, scroll or resize the window the items redraw and the check boxes all of a sudden appear!

      Screenshot-2016-04-11-16.04.10.gif

      If anybody can think of some ideas to fix this I would appreciate the help.