Fork me on GitHub
#reveal
<
2020-10-06
>
dakra10:10:56

Is there a way to set min-width for a column in a custom table view? It lookes like it's fixed 40 https://github.com/vlaaad/reveal/blob/8d006a0344c14228c33670a0fdbb3d7302e1a3d3/src/vlaaad/reveal/view.clj#L244 ?

vlaaad11:10:24

hi! there is no way to set min-width since it’s hard-coded 🙂

vlaaad11:10:43

why do you want smaller columns?

dakra11:10:45

I want larger columns 😉

dakra11:10:38

the description on the top is not really readable. It seems to auto resize the column width only for the values

vlaaad11:10:27

ah, yeah, that looks like a problem…

vlaaad12:10:32

I’ll see what I can do, there is probably a way to make JavaFX not shrink those headers

dakra12:10:51

that would be nice. but what about just also considering the :min-width key if it's set? That should be an easy fix, no?

vlaaad12:10:16

Easy, yes, but then to benefit from that knob you have to use it explicitly

vlaaad12:10:32

e.g. create {:fx/type rx/table-view} and view it

vlaaad12:10:11

but there is also table-view action that can’t do that

dakra12:10:32

Sure. In my use case I did evaluate an rx/table-view and viewed it. So it would be enough there. For the normal table-view it's obviously different.