humbleui

fricze 2024-08-22T15:14:20.116659Z

some development in my CSV viewer built in Humble https://github.com/fricze/ermen added scroll component that scrolls both vertically and horizontally, no scrollbar yet. added support for page down/up, and home/end keys. also created copy of Humble grid component with adjusted condition for checking if columns overflow right viewport boundary. (>= (+ x width) (:right viewport)) that’s in original version is not enough sometimes and loop overflows number of rows (ie. tries to access row 378 from widths of length 378). I’ve changed it to (and (>= col (dec cols)) (>= (+ x width) (:right viewport))) which fixes the error. there’s probably better fix possible, once I understand why, exactly, it happens. I’ll work on porting defparent/deftype+ to Java at some point, but making things that work is more fun 🙂

🔥 3
lread 2024-08-22T15:30:23.007849Z

Cool! Small thing: your README sez to:

clj -M -m starter
But you might have meant?:
clj -M -m grid

👍 1
fricze 2024-08-23T06:36:20.505479Z

probably right! I’ve just forked repo from Niki and left as is, let me fix it 🙂