nickandmiles / dat-gui

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

height parameter in new DAT.GUI({height: 4299}) #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When doing new DAT.GUI() the widget appears to be around 300 pixels. It seems 
fixed no matter the number of field lines i add. i looked how other use it, 
they put an explicit height parameter.

how to compute the value of the height ? by trial and error ? another formula ? 
The formula which worked for me seem to be (nbLines * 32 - 1)

is it possible to have the size automatically set ? 

Original issue reported on code.google.com by jerome.e...@gmail.com on 12 Aug 2011 at 6:30

GoogleCodeExporter commented 8 years ago
Same Issue here. Screenshot attached

Original comment by felixtur...@gmail.com on 3 Nov 2011 at 10:26

Attachments:

GoogleCodeExporter commented 8 years ago
Can be fixed with jQuery like this: 
$(".guidat-controllers").css("height","255px");

If the panel is closed and re-opened, the height is OK.

Original comment by felixtur...@gmail.com on 3 Nov 2011 at 10:35

GoogleCodeExporter commented 8 years ago
Fixed in 0.5. No custom heights, gui snaps to total controller size.

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