mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-10 03:10:44 +00:00
Set page title to lambda term
This commit is contained in:
parent
843430439d
commit
d3fd5b99a8
@ -171,9 +171,9 @@ class MathjaxProofTree extends MathjaxAdapter {
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
// TODO: this does not work when using a permalink
|
||||
const bbox = (svg.childNodes[1] as SVGGraphicsElement).getBBox();
|
||||
svg.setAttribute("viewBox", bbox.x + " " + bbox.y + " " + bbox.width + " " + bbox.height);
|
||||
// TODO: this does not scale the SVG correctly
|
||||
//const bbox = (svg.childNodes[1] as SVGGraphicsElement).getBBox();
|
||||
//svg.setAttribute("viewBox", bbox.x + " " + bbox.y + " " + bbox.width + " " + bbox.height);
|
||||
if (counter >= 3) {
|
||||
// should not be used on empty SVGs
|
||||
// @ts-ignore
|
||||
|
@ -97,6 +97,7 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
|
||||
String currentInput = inputField.getOptionalValue().orElse(StringUtils.EMPTY);
|
||||
|
||||
if (currentInput.length() < MAX_INPUT_LENGTH) {
|
||||
UI.getCurrent().getPage().setTitle(getTranslation("root.typicalc") + " - " + currentInput);
|
||||
callback.accept(Pair.of(currentInput, typeAssumptionsArea.getTypeAssumptions()));
|
||||
} else {
|
||||
final Notification errorNotification = new ErrorNotification(getTranslation("root.overlongInput"));
|
||||
|
Loading…
Reference in New Issue
Block a user