Function: image-dired-line-up-dynamic

image-dired-line-up-dynamic is an interactive and byte-compiled function defined in image-dired.el.gz.

Signature

(image-dired-line-up-dynamic)

Documentation

Line up thumbnails images dynamically.

Calculate how many thumbnails fit.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/image-dired.el.gz
(defun image-dired-line-up-dynamic ()
  "Line up thumbnails images dynamically.
Calculate how many thumbnails fit."
  (interactive)
  (let* ((char-width (frame-char-width))
        (width (image-dired-window-width-pixels (image-dired-thumbnail-window)))
        (image-dired-thumbs-per-row
         (/ width
            (+ (* 2 image-dired-thumb-relief)
               (* 2 image-dired-thumb-margin)
               (image-dired-thumb-size 'width)
               char-width))))
    (image-dired-line-up)))