Commit 82626f2
search dialog: fix clipped Min/Max Size + Availability spin controls on Linux
Follow-up to #569. The extension field there was pinned to
wxSize(40, 10) which collapsed it to a 10-pixel sliver on
wxGTK 3.2 / GTK3. The same row also has three wxSpinCtrls --
Min Size, Max Size, Availability -- pinned to wxSize(60, -1)
or wxSize(45, -1). On GTK those numeric widths aren't wide
enough to fit the stacked up/down arrow buttons plus the
digit display, so the value column gets clipped behind the
spin arrows.
Drop the hard-coded widths to wxDefaultSize and let the layout
engine choose. macOS / Windows render side-by-side spin
buttons that fit comfortably in the wider default; GTK gets
the larger geometry it needs for stacked arrows.
Reported by @danim7 on the #569 thread, confirmed by
@mifritscher2. Symptom and fix are mechanically identical to
#569's, just on the row below and on the spin-control widths
instead of the textctrl height.1 parent 2971761 commit 82626f2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| |||
0 commit comments