AleNextm9 / dat-gui

Automatically exported from code.google.com/p/dat-gui
0 stars 0 forks source link

can not open dropdown #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. whatever i do i just cant open it.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ggdagch...@gmail.com on 10 Dec 2011 at 4:45

GoogleCodeExporter commented 9 years ago
More details please? Platform, or include code?

Original comment by georgebr...@google.com on 13 Jan 2012 at 10:58

GoogleCodeExporter commented 9 years ago
ok.when i run it on chrome,When chrome already load a mesh i cant drop down
the dropdown menu.but on firefox it is ok,i can select the droplist to
clear and load anothermesh.   and i found that if option do nothing it
always can drop the list.
�� 2012-1-14 ����6:58�� <dat-gui@googlecode.com>���

Original comment by ggdagch...@gmail.com on 17 Jan 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Hi,

I ran into this same problem actually - dropdowns worked fine for me in Firefox 
but Chrome users reported they failed to open when clicked. This happened to 
either all the dropdowns, or none.

I think the problem may have been that one of the dropdowns had options that 
were not assigned to the variable, i.e.

valRenderer = 
folderRender.add(params,'renderMethod',['methodOne','methodTwo']).name('renderMe
thod');

valRenderer.onChange(function(value) {
  if ( value == "methodOne" ) {
      params.renderMethod = "otherStringOne";
          //other things
  }
  if ( value == "methodTwo" ) {
      params.renderMethod = "otherStringTwo";
          //other things
  }
});

Making these consistent seems to have fixed things (for all dropdowns, though 
only one had this issue) in Chrome.

Original comment by rav...@gmail.com on 23 May 2012 at 5:13

GoogleCodeExporter commented 9 years ago
Hi ravhin,

Can you post the code that works? Sorry, I am not able to figure out what you 
mean.

Original comment by malav.bh...@gmail.com on 29 May 2012 at 7:09

GoogleCodeExporter commented 9 years ago
I have the same issue on Chrome 23.0.1271.95m, Win64, AMD E350 netbook. Works 
fine on FireFox on the same machine.

A simple GUI on my page has the issue:
   var gui = new dat.GUI(); // height of 30px per control ish
   gui.add(obj, "shademode", ["plain", "depthcue", "lightsource"]);
   gui.add(obj, "fillmode", ["fill", "filltwice", "inflate", "fillstroke", "hiddenline"]);

Original comment by kev...@gmail.com on 11 Dec 2012 at 10:38

GoogleCodeExporter commented 9 years ago
I have same issue. But it does not work in firefox either.
var params = {
        brush: {
          strength: 1.0,
          color: "#ae23ff",
          type: items.Me
        },
        path: "#ff23ae",
        actions: {
          find: function() {}
        }
};
var gui = new dat.GUI();
  var brush_folder = gui.addFolder("Brush");
  brush_folder.add(params.brush, "strength", 0, 1);
  brush_folder.addColor(params.brush, "color");
  brush_folder.add(params.brush, "type", { Ground : 1, Me : 2, Goal : 4 });
  brush_folder.open();
  gui.addColor(params, "path");
  gui.add(params.actions, "find");

Dropdown simply dows not work. Even though it renders select with all options.

Original comment by bogdan.w...@gmail.com on 19 Jan 2013 at 7:17

GoogleCodeExporter commented 9 years ago
Using three.js or mouseDown-Event??

I had the Problem using dat-.gui dropdown and a mouse-controlled camera with 
three.js.

Problem:
event.preventDefault();

Using this line in a MouseListener bound to mouseDown will stop dat.gui 
dropdown from working.

Original comment by Bertram...@googlemail.com on 26 Jun 2013 at 7:54

GoogleCodeExporter commented 9 years ago
That was my issue, thanks

Original comment by bogdan.w...@gmail.com on 26 Jun 2013 at 8:30