-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support setting padding on the .xterm element #1208
Conversation
This is great, thanks @mofux! |
so what is left to get this merged? |
Will this work if I set only padding-left ? |
@ficristo Yes, it will work with individual paddings for every side. |
@Tyriar All checks are green now, please review if you find a moment 🧐 |
I resolved the conflicts introduced from #1222 |
Found a bug, having a non-zero padding breaks IMEs. This is happening because of the position of the xterm-helper and there was an assumption that there was no padding inside the terminal container. The Clipboard.ts file also moves textarea under the cursor ( |
src/Viewport.ts
Outdated
// Measure the width of the scrollbar. If it is 0 we can assume it's an OSX overlay scrollbar. | ||
// Unfortunately the overlay scrollbar would be hidden underneath the screen element in that case, | ||
// therefore we account 15px to make it visible | ||
this.scrollBarWidth = (this.viewportElement.offsetWidth - this.scrollArea.offsetWidth) || 15; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's pull 15 up to the top to a named constant, maybe FALLBACK_SCROLL_BAR_WIDTH
?
any updates on this PR? |
@cancan101 I'll try to resolve the remaining issues this week. |
This fixes the textarea/composition view's position when using an IME
@mofux I synced with master and resolved conflicts then made the following changes:
|
@KhizerRehan I think you set it on .xterm |
ah nevermind. i should be adjusting the css on the container to address this 😄 |
Fixes #946
This PR adds the ability to add a custom css padding to the
.xterm
element while still having the scrollbar filling the whole space.In action: