# keymap ui: Resize columns on double click improvement \(\#35095\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4abe14f94a30c0fc9c4e0e3ef14cae7609f7b429)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4abe14f94a30c0fc9c4e0e3ef14cae7609f7b429

Requested commit: 4abe14f94a30c0fc9c4e0e3ef14cae7609f7b429

Commit: 4abe14f94a30c0fc9c4e0e3ef14cae7609f7b429

Tree: 70ab9f8033bb41329da0add8d1a865fc9922e7a0

Author: Anthony Eid

Committer: GitHub

## Message

```
keymap ui: Resize columns on double click improvement (#35095)

This PR improves the behavior of resetting a column's size by
double-clicking on its column handle. We now shrink/grow to the side
that has more leftover/additional space.

We also improved the below

1. dragging was a couple of pixels off to the left because we didn't
take the column handle’s width into account.
2. Column dragging now has memory and will shift things to their exact
position when reversing a drag before letting the drag handle go.
3. Improved our test infrastructure.
4. Double clicking on a column's header resizes the column

Release Notes:

- N/A

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
```

## Parents

- [cd5095872748ef2d56fa03b54e40b6aaa5ff7906](https://git.cafe/gitcafe/zed/commit/cd5095872748ef2d56fa03b54e40b6aaa5ff7906?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4abe14f94a30c0fc9c4e0e3ef14cae7609f7b429?format=markdown)
