Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fix titlebar menu + titlebar resize issues #4203

Merged
merged 1 commit into from
Sep 22, 2016
Merged

Fix titlebar menu + titlebar resize issues #4203

merged 1 commit into from
Sep 22, 2016

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Sep 22, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests). N/A
  • Ran git rebase -i to squash commits (if needed).
  • Both menubar and caption button controls will properly mark themsel…
    …ves as draggable when they are allowed to be dragged

and then remove that style when they shouldn't be (for example, when a modal is showing or a context menu is being displayed).

Huge thanks to @bbondy for the assist :)
Fixes #4142

Updated Windows 7 colors w/ @bradleyrichter

Auditors: @bbondy

Test Plan:
for #4142

  • launch Brave on Windows 7
  • click one of the menus, so that the popup comes down
  • move mouse down very slowly- it should highlight the first context menu as soon as it comes into the bounds of the control (previously, it didn't until it was well into the context menu). See original issue ticket for a screencap of the issue

for #4185

…ves as draggable when they are allowed to be dragged

and then remove that style when they shouldn't be (for example, when a modal is showing or a context menu is being displayed).

Huge thanks to @bbondy for the assist :)
Fixes #4142

- Menu gets compressed nicely when making small (less padding). Caption buttons no longer wrap
Fixes #4185

Updated Windows 7 colors w/ @bradleyrichter
Copy link
Member

@bbondy bbondy left a comment

Choose a reason for hiding this comment

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

++

@@ -55,7 +55,7 @@ class WindowCaptionButtons extends ImmutableComponent {
}

render () {
return <div className={this.buttonClass + ' windowCaptionButtons'}>
return <div className={this.buttonClass + ' windowCaptionButtons' + (this.props.shouldAllowWindowDrag ? ' allowDragging' : '')}>
Copy link
Member

Choose a reason for hiding this comment

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

ewww :) Pls change this to use cx for classSet in a followup

@@ -868,7 +869,10 @@ class Main extends ImmutableComponent {
<div className='navbarMenubarBlockContainer'>
{
customTitlebar.menubarVisible
? <div className='menubarContainer'>
? <div className={cx({
Copy link
Member

Choose a reason for hiding this comment

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

yes like this one...

@bbondy bbondy merged commit a515706 into brave:master Sep 22, 2016
@luixxiul luixxiul added this to the 0.12.2dev milestone Sep 23, 2016
@bsclifton bsclifton deleted the titlebar-fix-caption-wrap branch September 23, 2016 06:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants