Open ugurdoksan opened 6 years ago
Here is the result UI
I can confirm this behavior.
It also happens once i click a button inside the Formlayout inside the ComponentRenderer (instead of closing and reopening the ItemDetails again). The whole ItemDetails jump down the grid as @ugurdoksan mentioned in his example.
I add ItemDetailsRenderer (Has FormLayout as layout) to the TreeGrid. Than I click to any row to expand -> Everything is fine... 👍 Than I click again to the same row to collapse - > Everything is fine... 👍 Than I click again to the same row to expand -> Oooppps... 👎 The distance with the row and renderer layout is huge ( As much as the height of the formlayout)
The first expand is always OK. But the following expands is not OK. The problem is the unnecessary space with the row and ItemDetailsRenderer layout.
Not: Then I use VerticalLayout or HorizontalLayout, there is no problem. But when I use Formlayout, the problem occurs...
Dependency: vaadin-grid-flow -> 1.2.0 Browsers: All Browser (Mobile and Web)
` gridTree = new TreeGrid<>( ); gridTree.addHierarchyColumn( ProductDto::getName ).setHeader( "Adı" )..setWidth( "450px" ); gridTree.addColumn( createRenderer_State( ) ).setHeader( "Durumu" ).setWidth( "145px" ); gridTree.setItemDetailsRenderer( createRenderer_ItemDetails( ) );
private ComponentRenderer<FormLayout, ProductDto> createRenderer_ItemDetails( ){
`