Jason Milkins

Results 290 comments of Jason Milkins

Any ideas on determining pixel width of a row @sabof?

I guess that each widget would have to provide a pixel width, which we fold.

Is frame char width how it derives the row width? I assumed that different font sizes of widget text might affect this measurement. Ps. ~~where~~ were.

Geometry calculated when using `(frame-char-width)` ![screen shot 2015-05-02 at 8 14 43 am](https://cloud.githubusercontent.com/assets/71587/7439108/52ddac44-f0a3-11e4-9161-ede070f0652e.png)

What is needed is for a widget to return its width in pixels, ie. smt/w-pixel-width Then it's a case of foldl / reduce on the row's widgets to get the...

The code just changes the above s/5.5/(frame-char-width)/

Oh, I see I didn't post the original. In a nutshell: a svg rect inside a lambda (row) ``` :width ,(* (frame-char-width) (smt/r-width row)) ... ```

the original factor was 5.5 instead of frame-char-width ... It does show that some level of approximation is useful here though.

It's worth noting that with more accurate measures we won't be hiding rows that would _actually_ fit.

I've done this with my scratch of `smt/r-export-default` SVG container, positioned by align. (background and overlay support.) The only things left are - [ ] nice/accurate width measurement - [x]...