Phu2
(Phú Phan)
September 11, 2019, 2:44am
1
Hi all,
I am getting an issue about vaadin grid when focus on it again.
When I scroll horizontal to right, then I click outside grid to lost focusing on that grid, when I click again on horizontal scrollbar - right arrow to move it. However, it scrolls from first column again.
Is there anyway to prevent this?
Thanks!
ollit.1
(Olli Tietäväinen)
September 11, 2019, 6:04am
2
Are you able to reproduce the issue for example here https://vaadin.com/components/vaadin-grid/html-examples/grid-columns-demos ? I tried, but I’m not 100% sure of the exact steps (when to press what), and I don’t think I got it to behave like you describe.
If you can get that same behavior on the demo, you should file a ticket at https://github.com/vaadin/vaadin-grid/issues/new
Phu2
(Phú Phan)
September 11, 2019, 6:48am
3
I am not able to reproduce the issue on example site.
My grid columns generate by using a dom repeat like this
<vaadin-grid items="[[items]
]">
<template is="dom-repeat" items="{{columns}}" as="col">
<vaadin-grid-column width="14em" resizable>
<template class="header">[[col.title]
]</template>
<template>{{_getCellValue(item, col)}}</template>
</vaadin-grid-column>
</template>
</vaadin-grid>
My steps are:
Move horizontal scroll to right.
Click outside of grid to lost focusing on grid.
Click on “horizontal scroll - right arrow” to move scroll.
Horizontal scroll jumps to left, it not move from current position.
In here, I think my issue can be I generate columns dynamic.
Waiting for you reply
ollit.1
(Olli Tietäväinen)
September 11, 2019, 6:50am
4
Hi,
Can you create a full working example that demonstrates the issue?
-Olli
Phu2
(Phú Phan)
September 11, 2019, 6:59am
5
ollit.1
(Olli Tietäväinen)
September 11, 2019, 7:13am
6
You should put that video (maybe along with some code on how to recreate the same) in the new issue you can create here: https://github.com/vaadin/vaadin-grid/issues/new