INNER CODE UNIT · Dart
spaceAbove
TerminalStudio/xterm.dart · lib/suggestion.dart:166
final spaceAbove = cursorRect.value.top - padding.top - cursorMargin.top;
// space available for the completion overlay below the cursor
final spaceBelow = size.height -
cursorRect.value.bottom -
padding.bottom -
cursorMargin.bottom;
final childConstraints = BoxConstraints(
minWidth: 0,
maxWidth: size.width - padding.horizontal,
minHeight: 0,
maxHeight: max(spaceAbove, spaceBelow),
);
child.layout(childConstraints, parentUsesSize: true);
// Whether the completion overlay can be placed above the cursor.