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

Add a toolbar with some basic actions #92593

Merged
merged 5 commits into from
Mar 16, 2020
Merged

Conversation

roblourens
Copy link
Member

@roblourens roblourens commented Mar 12, 2020

There are multiple ways to do this and I am not sure what the best recommended modern method is but I register the command+keybinding with Action2, and create a MenuItemAction (Action tied to a command ID) for each, which is used for the toolbar/contextmenu.

@roblourens roblourens requested a review from rebornix March 12, 2020 18:25
@rebornix rebornix self-assigned this Mar 13, 2020
Copy link
Member

@rebornix rebornix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! I ran it locally and it works pretty good. The only issue I ran into is cell height after resizing

image

The reason that happens is we will resize current element when there is internal size change, and that part of code doesn't include editor toolbar height.

I can make changes in upstream first to add some abstraction to cell height calculations and then update your branch accordingly.

@rebornix rebornix merged commit 4996dcd into rebornix/notebook Mar 16, 2020
@rebornix rebornix deleted the roblou/addToolbar branch March 16, 2020 16:31
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants