reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
dakra 2020-10-06T10:32:56.031800Z

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 ?

vlaaad 2020-10-06T11:33:24.032Z

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

vlaaad 2020-10-06T11:40:43.032300Z

why do you want smaller columns?

dakra 2020-10-06T11:50:45.032500Z

I want larger columns 😉

dakra 2020-10-06T11:51:38.032700Z

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

vlaaad 2020-10-06T11:52:27.032900Z

ah, yeah, that looks like a problem…

vlaaad 2020-10-06T12:04:32.033100Z

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

dakra 2020-10-06T12:13:51.033300Z

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?

vlaaad 2020-10-06T12:23:16.033500Z

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

vlaaad 2020-10-06T12:23:32.033700Z

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

vlaaad 2020-10-06T12:24:11.033900Z

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

dakra 2020-10-06T12:27:32.034100Z

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.