-
Notifications
You must be signed in to change notification settings - Fork 77
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
IndirectSelect with extendedSelect/Row alignment issues in Chrome #403
Comments
Providing modified test_grid_indirectSelect.html just in case: |
+1 |
Here's what I did to work around the issue. It works for us, but might not work for everyone. The row heights are set in gridx/modules/RowHeader.js, specifically the _syncRowHeight function. In our case, we had (long ago) styled the row height using a CSS class. You might have a different style... or no style at all. I'm just pointing this out so you understand where I get the heights from in my version of the _syncRowHeght function below. Here is our CSS style:
I have a utility class called GridXUtils that I've used to work around other issues. I created a function to replace the _syncRowHeight function:
I call this utility function just after the grid is created, but before startup:
As you can see I've got some hard-coded pixels in my version of the function. This works for me because I'm using a 25px height. You might have to play with the heights a bit to get it to work correctly for you. The alignment is not perfect... but it's pretty good. Good enough until this issue can be fixed by the GridX team. |
Can you try #365? |
#365 did not seem to resolve my issue. However, while testing #365 I found I could simplify my fixChromeAlignmentIssue workaround ... no need to hard-code the pixels. It seems that when getHeight() returns a decimal, for example "24.8px" the logic takes it down one path that does not seem to work in Chrome in some zoom scenarios. I've adjusted the logic to ALWAYS go into the ELSE if Chrome is detected. Alignment seems to work fine that way.
|
Hi,
![gridx-select-issue](https://cloud.githubusercontent.com/assets/6876128/22981269/0be17032-f3ad-11e6-8b1b-d463b06602e6.png)
I modified test_grid_indirectSelect and remove paging to show all result items in grid on one page with scrolling. And in Chrome (only, IE and FF seems to be OK) selection boxes on the left get out of alignment with the corresponding lines. Please see attached screenshot.
Any good solution for this issue?
Thanks!
The text was updated successfully, but these errors were encountered: