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

Display query grid: No titles in tabs of second row #3273

Closed
svades opened this issue Dec 14, 2017 · 12 comments
Closed

Display query grid: No titles in tabs of second row #3273

svades opened this issue Dec 14, 2017 · 12 comments
Assignees
Milestone

Comments

@svades
Copy link

svades commented Dec 14, 2017

Project:

Steps to reproduce the issue:

  • do a query over a surface
  • open a tab in the second row
  • the titles of the tabs in the second row are broken

Result:
display_query_grid

As soon as there are two rows of tabs in the display query grid the titles are broken.

@sbrunner sbrunner added this to the 2.2 milestone Dec 14, 2017
@sbrunner sbrunner added the Ready label Dec 18, 2017
@sbrunner
Copy link
Member

see: elboletaire/tabbedcontent#19

@ger-benjamin
Copy link
Member

@svades I can't reproduce this issue (I've 2 lines of tabs with a normal style. But I've lesser tabs). Which browser (and version) do you use, and on which OS ?

@svades
Copy link
Author

svades commented Dec 21, 2017

It usually happens at the eleventh, twelfth, thirteenth... tab.
I use IE11 (Version 11.0.9600.18860) and I could also reproduce it in Chrome (Version 63.0.3239.108) and Firefox ESR (52.4.1) on Windows 7 Enterprise.

@ybolognini ybolognini assigned llienher and unassigned ger-benjamin Jan 8, 2018
@ybolognini
Copy link
Member

@llienher Please check with more than 10 tabs

@llienher
Copy link
Member

llienher commented Jan 10, 2018

@svades We merged a fix for an issue related to merged tabs for 2.2.2 minor release. We saw that when a merged tabs is defined with a name containing space, brackets, parenthenses, etc, the grid headers would break because the html would use the name defined in the controller as element id. This way the CSS selector was broken in the javascript as it was trying to retrieve several ids (from the spaces), not just the one element we wanted to 'reflow' the grid at tab selection.

Our fix should not affect any project setup as the controller setup (mergeTabs) will be the same as now. But the issue is not related to having more than 10 tabs, while the consequences where similar to what you described.

Please reopen this issue if it's there is any remaining issue when you are able to test 2.2.2 in your project.

@svades
Copy link
Author

svades commented Jan 29, 2018

I could now test in in gmf 2.2.2 and there is an error doing a request over a surface:
typeerror_request

The displayQueryGrid remains empty:
empty_grid

@llienher
Copy link
Member

Thanks for you feedback, I'm reopening this issue. I'm still not sure if it is related the the initial fix we addressed here.

Do you have an instance where I can see this issue more in detail ?

@llienher llienher reopened this Jan 29, 2018
@svades
Copy link
Author

svades commented Jan 29, 2018

Our branch "gmf222" is where we updated the master to gmf 2.2.2.
Unfortunately, the URL (map.geo.dev.bs.ch/ngeodesktop) is not reachable for you because it is on our development environment.

@jwkaltz
Copy link
Member

jwkaltz commented Jan 29, 2018

Hi Silvana, we checked this functionality on our demo project; the default demo project does not use the displayquerygrid, but we built a test instance 2.2.2 with Laurent that does activate the displayquerygrid: https://gmf-test.sig.cloud.camptocamp.net/llienher
The query works fine, there. We suspect that the JavaScript error you mention comes from a Baselstadt specific adaptation. Can you please verify that, and, if needed, open a support ticket?

@jwkaltz jwkaltz closed this as completed Jan 29, 2018
@svades
Copy link
Author

svades commented Jan 30, 2018

Hi,
I could reproduce the issue on your demo project.
I loaded all the layers in the theme "Demo" and did a request over a big surface. Then the displayquerygrid appears but is white and empty (see screenshot).
demo_empty_querygrid

@llienher
Copy link
Member

llienher commented Jan 30, 2018

Hi,

I have been able to narrow the issue to the 'two layers' in the demo (not my own test instance, it's not reliable) and precisely break the grid...
I'm going to open a new issue to this problem.

@llienher
Copy link
Member

New issue opened here:
#3462

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

No branches or pull requests

6 participants