<templates>
  <t t-name="o-spreadsheet-GridPopover">
    <Popover
      t-if="this.cellPopover.isOpen"
      positioning="this.cellPopover.cellCorner"
      maxHeight="this.cellPopover.Component.size and this.cellPopover.Component.size.maxHeight"
      maxWidth="this.cellPopover.Component.size and this.cellPopover.Component.size.maxWidth"
      anchorRect="this.cellPopover.anchorRect"
      onMouseWheel="this.props.onMouseWheel"
      class="'o-popover-grid-index'">
      <t
        t-component="this.cellPopover.Component"
        t-props="{...this.cellPopover.props, onClosed : () => this.props.onClosePopover()}"
      />
    </Popover>
  </t>
</templates>
