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

Resizing a column with preceding flexed columns moves the column being resized. #3025

Closed
pmiklashevych opened this issue Jun 14, 2021 · 1 comment
Assignees
Labels
bug Something isn't working forum Issues from forum premium resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@pmiklashevych
Copy link

pmiklashevych commented Jun 14, 2021

https://www.bryntum.com/forum/viewtopic.php?p=88177#p88177

http://lh/bryntum-suite/grid/examples/contextmenu/
All columns have flex : 1 by default. Try to change the last column width. Dragging between birthplace and birthday changes the size of the birthplace column only. Other columns apply flex width. Dragging at the end of birthday column changes the column width, but it is not possible to make it bigger after that. It should behave the same way it does when there are no flex columns specified (when resizing, the width of both the left and the right columns should be changed)

2021-06-14.17.26.32.mov
2021-06-14.17.24.03.mov
2021-06-14.17.30.50.mov
@pmiklashevych pmiklashevych added bug Something isn't working premium forum Issues from forum labels Jun 14, 2021
@matsbryntse matsbryntse added this to the 4.2.1 milestone Jun 14, 2021
@SergeyMaltsev SergeyMaltsev modified the milestones: 4.2.1, 4.2.2 Jul 7, 2021
@SergeyMaltsev SergeyMaltsev modified the milestones: 4.2.2, 4.2.3 Jul 21, 2021
@isglass isglass modified the milestones: 4.2.3, 4.2.4 Aug 5, 2021
@SergeyMaltsev SergeyMaltsev modified the milestones: 4.2.4, 4.2.5 Aug 27, 2021
@SergeyMaltsev SergeyMaltsev modified the milestones: 4.2.5, 4.2.6 Sep 8, 2021
@matsbryntse matsbryntse modified the milestones: 4.2.6, 4.2.7 Sep 15, 2021
@matsbryntse matsbryntse modified the milestones: 4.2.7, 4.2.8 Oct 3, 2021
@isglass isglass modified the milestones: 4.2.8, 4.3.x Oct 7, 2021
@isglass isglass modified the milestones: 4.3.x, 5.0.x Feb 18, 2022
@SergeyMaltsev SergeyMaltsev modified the milestones: 5.0.x, 5.1.x Jul 21, 2022
@SergeyMaltsev SergeyMaltsev modified the milestones: 5.1.x, 5.2.x Oct 13, 2022
@isglass isglass removed this from the 5.2.x milestone Feb 20, 2023
@ExtAnimal
Copy link

The solution is to unflex any flexed columns and set them explicitly to the width they happen to be at the current grid width when starting resize of any column:

// Unflex all flexed columns so that they do not change size
// in response to sibling size changes
grid.columns.query(c => c.flex).forEach(c => {
    c.element && c.set({
        width : c.element.offsetWidth,
        flex : ''
    });
})

@ExtAnimal ExtAnimal self-assigned this Apr 16, 2024
@ExtAnimal ExtAnimal changed the title Column resizing works unpredictable when at least one column has flex value Resizing a column with preceding flexed columns moves the column being resized. Apr 16, 2024
@ExtAnimal ExtAnimal added this to the 5.6.10 milestone Apr 16, 2024
@isglass isglass added the resolved Fixed but not yet released (available in the nightly builds) label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum premium resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

5 participants