Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Editor Resize #149

Merged
merged 22 commits into from
May 26, 2016
Merged

Conversation

valendesigns
Copy link
Contributor

Adds vertical resize capability to post editor pane

Fixes #136

pingram3541 and others added 17 commits May 13, 2016 01:33
Adds vertical resize capability to post editor pane
remove unused vars
- descriptive var names
- add editorResize function - keep it DRY
- adjust min/max to give more resize freedom
- add window resize listerner to not allow editor controls to push off screen
- change css class/id names for drag bar and drag resize helper
- change class and id names for drag bar and drag bar helper
- change drag bar class name to be more descriptive
Updated file from master branch instead of develop
This prevents the event handler bodies from running for every post section even when they are not expanded
editorFrame.css( 'height', args.height - args.components );
collapse.css( 'bottom', args.height + 8 );

if ( 56 > windowHeight - args.height ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What is 56? Can we assign it to a named variable so we can understand what is being referred to here?

@westonruter
Copy link
Contributor

@pingram3541 could you please advise on appropriate variable names for those magic-number literals? For more information, see http://eslint.org/docs/rules/no-magic-numbers

@valendesigns
Copy link
Contributor Author

valendesigns commented May 26, 2016 via email

@westonruter westonruter merged commit 5515b18 into develop May 26, 2016
@westonruter westonruter deleted the pingram3541-feature/editor-vertical-resize branch May 26, 2016 04:50
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