Skip to content

Tray.getBounds on Linux #15003

@CodeDraken

Description

@CodeDraken
  • Output of node_modules/.bin/electron --version: v3.0.2
  • Operating System (Platform and Version): Linux, Ubuntu 18

Expected Behavior
Expected tray.getBounds() to return bounds.

Actual behavior
It did not return the correct bounds.

const tray = new Tray(icon)
tray.getBounds()
// { x: 0, y: 0, width: 0, height: 0 } ( incorrect bounds )

Additional Information
I'm trying to position a window under the tray icon. Is there any way to do this on Linux?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions