-
Notifications
You must be signed in to change notification settings - Fork 236
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
No vertical scrollbar since 0.7-M1 #311
Comments
|
Just tried it and when I do so, i see a scroll bar but mouse scrolling doesn't work and clicking on the bar and dragging it up and down has an erratic behavior (sometimes scroll, sometimes doesn't).
I've extended CodeArea with to a class which adds syntax highlighting, a few keyboard shortcuts and bounds it to a file (to read/write). I don't think this can affect the scrollbar as it works fine with 0.6.10 but i thought i'd mention it. |
I guess I broke the scrollbar dimensions in the latest snapshot (easy to fix), but otherwise they work. I also cannot reproduce the mouse scroll problem. |
@Crystark I fixed the issue with scrollbars that I was referring to. Can you please provide a self-contained reproducible test case for the other issue? |
@TomasMikula i'll try to see what i can do. It's kinda hard forme to extract it right now. I've managed to isolate what was making it fail: it's the syntax highlighting: EventStream<?> richChanges = richChanges();
richChanges
.successionEnds(Duration.ofMillis(1))
.supplyTask(this::computeHighlightingAsync)
.awaitLatest(richChanges)
.filterMap(t -> {
if (t.isSuccess()) {
return Optional.of(t.get());
}
else {
t.getFailure().printStackTrace();
return Optional.empty();
}
})
.subscribe(this::applyHighlighting); I'll continue digging. |
Fixed! I changed it to: richChanges()
.filter(ch -> !ch.getInserted().equals(ch.getRemoved()))
.successionEnds(Duration.ofMillis(1))
.supplyTask(this::computeHighlightingAsync)
.awaitLatest(richChanges())
.filterMap(t -> {
if (t.isSuccess()) {
return Optional.of(t.get());
}
else {
t.getFailure().printStackTrace();
return Optional.empty();
}
})
.subscribe(this::applyHighlighting); As provided in the new example. |
Ok it's all good.
|
Hi,
I just switch from a 2-weeks old 1.0.0-SNAPSHOT to 0.7-M1 and I seem to have lost the vertical scroll-bar in the editor. I can't even scroll with the mouse. I have to select the text and drag the mouse down so that the text field scrolls.
Tried reverting to 1.0.0-SNAPSHOT but that branch is now giving me the following error:
I reverted to 0.6.10 in the meantime.
The text was updated successfully, but these errors were encountered: