Skip to content

ofxDatGuiDropdown on bottom  #159

@pidou92

Description

@pidou92

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions