Commit 6aaf1fd
committed
Viewer: clamp the drawer divider to the max width too (#85)
The live divider drag only bounded the image view's and drawer's minimum
widths, so in a wide (maximized) window the bar could be dragged far past
the drawer's maximum and then snapped back to it on release. Bound the
image-view width from below by the max-drawer position as well, so the
divider stops cleanly at both the minimum and maximum drawer widths.1 parent 38dd1ce commit 6aaf1fd
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
157 | 163 | | |
158 | 164 | | |
159 | 165 | | |
| |||
0 commit comments