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

Columns: selectable with SpanAllColumns & overlaid button does not work #684

Closed
petrihakkinen opened this issue Jun 6, 2016 · 5 comments

Comments

@petrihakkinen
Copy link

Please see the attached pic. I would like to overlay a small button on top of a columns view that has a selectable with ImGuiSelectableFlags_SpanAllColumns in the first column but unfortunately it does not seem to work. When I click on one of the 'E' buttons, the selectable underneath steals the mouse press.

span_all_issue

@ocornut
Copy link
Owner

ocornut commented Jun 6, 2016

I suppose we'd need to add an _AllowOverlapMode. You can also just call SetItemAllowOverlap(), have you tried that?

@petrihakkinen
Copy link
Author

Oh, I'm sorry, I did not know about SetItemAllowOverlap() (it was missing from my Lua binding so I suppose it was added by some ImGui update semi-recently). This fixes the issue. Sorry for the noise, and thanks for the quick reply!

Should this issue be closed, or do you want to keep it open for _AllowOverlapMode?

@skl131313
Copy link

Bit related to this, using ImGuiSelectableFlags_SpanAllColumns cause the columns to not be resizeable anymore. The hover/click done on the Column border is sent to the Selectable instead.

render

@ocornut
Copy link
Owner

ocornut commented Oct 16, 2016

Yes that's known, As stated above, I think calling SetItemAllowOverlap() would fix it. I may look into making that automatic for the column resizing border.

@ocornut
Copy link
Owner

ocornut commented Aug 27, 2020

Closing this old issue I forgot to close at the time of adding the ImGuiSelectableFlags_AllowItemOverlap flag shortcut.

@ocornut ocornut closed this as completed Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants