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

In a typical single text-buffer set up move the scrollbar to the page side #43

Open
curiousdannii opened this issue Oct 3, 2020 · 3 comments

Comments

@curiousdannii
Copy link
Contributor

It would in theory be possible to detect whether the window arrangement has a typical single text-buffer, and if so to do some shenanigans to move the scroll bar to the side of the page. Maybe the <div> dimensions would be stretched to the page limits, and an inner div (or padding?) was used to limit the width of the window. If GlkOte was ever changed to use the flex box system it might be simpler?

Low priority, and rather hacky, but raising this issue so that the idea isn't forgotten.

@dfabulich
Copy link

I investigated this while trying to research #50 (but wound up solving it another way).

What I did was to set the buffer window to position: static and all other windows to position: fixed. It was fine, but it didn't solve any of my problems, so I didn't turn it into a PR.

(What problem is this intended to solve?)

@curiousdannii
Copy link
Contributor Author

(What problem is this intended to solve?)

This ugliness. But it could also be helped with some scroll bar styles.

Screenshot from Photopia

@curiousdannii
Copy link
Contributor Author

curiousdannii commented Nov 30, 2021

These styles work nicely (in Webkit at least)

.BufferWindow {
    overflow: auto;
    scrollbar-gutter: stable;
}
.BufferWindow::-webkit-scrollbar {
    width: 10px;
}
.BufferWindow::-webkit-scrollbar-thumb {
    background: rgba(50%,50%,50%,25%);
}

Screenshot from Photopia with new styles

curiousdannii added a commit to curiousdannii/parchment that referenced this issue Dec 1, 2021
Mostly insignificant Emglken update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants