Buggy when position isn't recomputed
This commit is contained in:
parent
bfc3e1c792
commit
d8551328f0
@ -23,7 +23,7 @@
|
||||
|
||||
(defun center-content--content-pixel-size ()
|
||||
"Return the size of the content of the visible text in pixels."
|
||||
(window-text-pixel-size (selected-window) (window-start) (window-end)))
|
||||
(window-text-pixel-size (selected-window) (window-start) (window-end nil t)))
|
||||
|
||||
(defun center-content--calculate-left-margin (content-width)
|
||||
"Calculate the left margin relative to CONTENT-WIDTH."
|
||||
|
Loading…
Reference in New Issue
Block a user