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

Maximized window behavior #79

Merged
merged 3 commits into from
Jun 19, 2018
Merged

Maximized window behavior #79

merged 3 commits into from
Jun 19, 2018

Conversation

andreybutenko
Copy link
Contributor

  1. Fix OS-specific issue on Windows where \n would be replaced with \r\n in Handlebars templates. See problem here. Solution was to use gulp-frep on the templates task.

  2. Add class .maximized to a window when maximized. Address Add class .maximized to a window when maximized #60.

  3. Disable movement of maximized windows. Address Maximized windows should not be movable #65.

this.signals.emit('maximize', this, this._restoreMaximized);
}
else {
this.el.removeClass('maximized');
Copy link
Owner

Choose a reason for hiding this comment

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

This is good, but I realized there are cases where the classes of the element do not reflect the state of the window. For example, if you maximize it and then minimize, this code is not executed and the class maximized will not be removed.

We need to completely change the way classes and state is synced (an issue not trivial to solve with this "vanilla js" library).

The bug was already there so I don't think it is a blocker for this PR. Thanks for doing this!

@rlamana rlamana merged commit 5d3be8b into rlamana:master Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants