ofxDatGui icon indicating copy to clipboard operation
ofxDatGui copied to clipboard

ofxDatGuiDropdown on bottom

Open pidou92 opened this issue 3 years ago • 1 comments

Hello, i need big Dropdown button in buttom of my app for clicking with fingers I write this code for testing but


    std::vector<std::string> options = {"ONE", "TWO", "THREE", "FOUR"};
    ofxDatGui *guiTL = new ofxDatGui(ofxDatGuiAnchor::TOP_LEFT);
    guiTL->addDropdown("My list", options);

    ofxDatGuiTheme *myTheme = new ofxDatGuiTheme(true);
    myTheme->stripe.width = 4.2f;
    myTheme->stripe.dropdown = ofColor::fromHex(0x00FF00);
    myTheme->layout.height = 52.0f;

    ofxDatGui *guiBL = new ofxDatGui(ofxDatGuiAnchor::BOTTOM_LEFT);
    guiBL->setTheme(myTheme);
    ofxDatGuiDropdown *myDropdown = guiBL->addDropdown("Other list", options);

    ofxDatGui *guiTR = new ofxDatGui(ofxDatGuiAnchor::TOP_RIGHT);
    guiTR->addButton("My bouton");

    ofxDatGui *guiBR = new ofxDatGui(ofxDatGuiAnchor::BOTTOM_RIGHT);
    guiBR->setTheme(myTheme);
    guiBR->addButton("Other bouton");

screen result not match, see screenshot https://ibb.co/PWHksGj if i click one time on "Other list" the size become correct

Christophe

pidou92 avatar Aug 06 '22 12:08 pidou92

What happens if you don't use custom theme settings? Does the alignment get corrected?

tjex avatar Sep 13 '22 11:09 tjex