Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup is disrupted when using scroll-bar with margin in right end. #21

Open
uk-ar opened this issue Sep 25, 2012 · 0 comments
Open

Popup is disrupted when using scroll-bar with margin in right end. #21

uk-ar opened this issue Sep 25, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@uk-ar
Copy link
Contributor

uk-ar commented Sep 25, 2012

Popup is disrupted in the following test code.

(ert-deftest popup-test-scroll-bar-right ()
  (popup-test-with-temp-buffer
    (insert (make-string (- (window-width) 1) ? ))
    (let* ((popup-scroll-bar-foreground-char
            (propertize "f" 'face 'popup-scroll-bar-foreground-face))
           (popup-scroll-bar-background-char
            (propertize "b" 'face 'popup-scroll-bar-background-face))
           (popup (popup-tip "Foo\nBar\nBaz\nFez\nOz"
                             :nowait t :height 3 :scroll-bar t :margin t)))
      (with-current-buffer (popup-test-helper-get-overlays-buffer)
        (let ((points (popup-test-helper-match-points
                       '("Foof" "Barb" "Bazb"))))
          (should (equal (popup-test-helper-same-all-p
                          (popup-test-helper-points-to-columns points))
                         (- (window-width) 5)))
          (should (eq (line-number-at-pos (car points)) 2))
          )))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants