braitsch / ofxDatGui

Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks
https://braitsch.github.io/ofxDatGui/
Other
432 stars 113 forks source link

Gui elements don't appear in example-GenerativeLines #39

Closed clayheaton closed 8 years ago

clayheaton commented 8 years ago

The DatGui elements do not appear in the example-GenerativeLines. This appear to be due to the positioning on line 9 of ofApp.cpp, which has:

gui = new ofxDatGui( ofxDatGuiAnchor::TOP_RIGHT );

Change it to the following at the GUI appears:

gui = new ofxDatGui( ofxDatGuiAnchor::TOP_LEFT );
clayheaton commented 8 years ago

Same holds true for example-OscillatingPolygon. Perhaps the problem is with the TOP_RIGHT positioning?

braitsch commented 8 years ago

I'm assuming you're building against 0.9.1? There's currently an issue with ofGetWidth() returning incorrect values when retina is enabled which is positioning the gui offscreen.

clayheaton commented 8 years ago

That's correct. I did not have high density display enabled in the oF app when I noticed it, but I do have a retina screen.

On Feb 7, 2016, at 3:15 AM, braitsch notifications@github.com wrote:

I'm assuming you're building against 0.9.1? There's currently an issue with ofGetWidth() returning incorrect values when retina is enabled which is positioning the gui offscreen.

— Reply to this email directly or view it on GitHub.

braitsch commented 8 years ago

As of 0.9.1 there is a bug in the oF window resize handler that is incorrectly setting the window dimensions. https://github.com/openframeworks/openFrameworks/pull/4844

braitsch commented 8 years ago

This will be fixed in 0.9.3