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

Position map overlays properly when there is a SQL header banner #2762

Merged
merged 7 commits into from
Mar 16, 2015

Conversation

viddo
Copy link
Contributor

@viddo viddo commented Mar 13, 2015

Fixes #2683

reposion-overlays

When map overlays was split out from mapview at least one variable (this.headerMessageIsVisible) wasn’t migrated with the rest, so the check to re-position overlays could not have been working since then. Also, the search overlay position calls were not correct either.

Anyway, this is the "quick fix". Adding tests for this was extremely hard (there didn't exist none), so finally skipped it since I don't think it's worth it right now. The code related to these parts are extremely and overly complicated (especially since most of it could be replaced with some proper CSS). Having in mind that we inevitably will touch this again when doing the redesign of the editor I propose to deal with it then instead.

When map overlays was split out from mapview at least one variable
(this.headerMessageIsVisible) wasn’t migrated with the rest, so the
check for the SQL header have been missing since.

Also, the search overlay was not poisoned properly (improper calls).
@viddo
Copy link
Contributor Author

viddo commented Mar 13, 2015

@javierarce code review please
cc @ohasselblad @saleiva see the animated gif for new (position) behavior of the overlays.

@javisantana
Copy link
Contributor

The code related to these parts are extremely and overly complicated

:tmcw:

@saleiva
Copy link
Contributor

saleiva commented Mar 13, 2015

👍

@viddo
Copy link
Contributor Author

viddo commented Mar 13, 2015

@javisantana relatively speaking ofc 💋

@javierarce
Copy link
Contributor

👍

I would only change:

setHeaderMessageIsVisibility with setHeaderMessageIsVisible

@viddo
Copy link
Contributor Author

viddo commented Mar 13, 2015

@javierarce agree, done

@andy-esch
Copy link
Contributor

looks beautiful to me 👍

@Cartofante
Copy link
Collaborator

Frontend tests were OK 👍 (details)

viddo added a commit that referenced this pull request Mar 16, 2015
Position map overlays properly when there is a SQL header banner
@viddo viddo merged commit 2a0eb17 into master Mar 16, 2015
@viddo viddo deleted the 2683-fix-sql-query-clear-banner branch March 16, 2015 17:37
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.

"create table from query or clear view" banner covers zoom overlay and search box
6 participants