Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofxDatGuiDropdown on bottom #159

Open
pidou92 opened this issue Aug 6, 2022 · 1 comment
Open

ofxDatGuiDropdown on bottom #159

pidou92 opened this issue Aug 6, 2022 · 1 comment

Comments

@pidou92
Copy link

pidou92 commented Aug 6, 2022

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

@tjex
Copy link

tjex commented Sep 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants