mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 09:28:45 +02:00
attr detail sizing
This commit is contained in:
parent
a3a2f1a2b4
commit
9b15437ff6
@ -360,6 +360,12 @@ export default class AttributeDetailWidget extends BasicWidget {
|
||||
|
||||
this.$widget.css("left", x - this.$widget.outerWidth() / 2);
|
||||
this.$widget.css("top", y + 25);
|
||||
|
||||
// so that the detail window always fits
|
||||
this.$widget.css("max-height",
|
||||
this.$widget.outerHeight() + y > $(window).height() - 50
|
||||
? $(window).height() - y - 50
|
||||
: 10000);
|
||||
}
|
||||
|
||||
getAttrType(attribute) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user