-
Notifications
You must be signed in to change notification settings - Fork 889
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
Make vertical tab strip resizable. #18567
Conversation
8366b3d
to
1d0e7cc
Compare
Make the vertical tab strip resizable, with a minimum and maximum width approximately half/twice the standard tab width."
1d0e7cc
to
81efc70
Compare
display::Screen::GetScreen()->GetCursorScreenPoint().x(); | ||
if (!resize_offset_.has_value()) { | ||
resize_offset_ = cursor_position - bounds_in_screen.right(); | ||
LOG(ERROR) << *resize_offset_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dvlog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, removed.
if (resizing_) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How this happens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I worried too much. I thought it could happen when the view is resized. Removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++ ResizeArea
seems very convenient! :)
Yeah, really is. Didn't have to struggle with event overriding 😄 |
Make the vertical tab strip resizable, with a minimum and maximum width approximately half/twice the standard tab width.
Screen.Recording.2023-05-22.at.10.08.41.PM.mov
Resolves brave/brave-browser#30322
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: