Skip to content

QTooltip horizontal offset has no effect #18212

@SilPho

Description

@SilPho

What happened?

When using the offset parameter of a q-tooltip, only the vertical offset seems to have any effect, seemingly no matter which values are used for anchor or self.

What did you expect to happen?

Horizontal and vertical offsets are applied equally.

Reproduction URL

https://jsfiddle.net/pk8vwoyd/

How to reproduce?

  1. Add the following to any element:
<q-tooltip :offset="[999, 10]" anchor="bottom left">
    Tooltip contents
</q-tooltip>
  1. Observe that the tooltip is offset by 10 pixels vertically, but 0 pixels horizontally, when it should be 999.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome, Firefox

Quasar info output

Relevant log output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions