question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WindowPosition.Aligned is occupying screen insets (taskbar)

See original GitHub issue

WindowPosition.Aligned mentions in the docs that the Window will be aligned in the area that is not occupied by the screen insets (taskbar, OS menubar)

However, I’m not seeing such behavior.

image

With the following code:

 val windowState = rememberWindowState(
      position = WindowPosition.Aligned(Alignment.BottomEnd),
      width = Dp.Unspecified,
      height = Dp.Unspecified,
  )
    
Window(
    state = windowState,
    undecorated = true,
    resizable = false,
    focusable = true,
    alwaysOnTop = true,
    onCloseRequest = {},
) {
    Box {
        Column {
            Text("test1")
            Text("test2")
            Text("test3")
            Text("test4")
        }
    }
}

Tried messing with all those attributes as well as removing the Box, but nothing seems to change this.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
LegendL3ncommented, Dec 11, 2021

Yeah right 😅

1reaction
LegendL3ncommented, Dec 10, 2021

Yea it did solve, thanks!

I had tried that something like that, guess I was missing the LaunchedEffect 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Taskbar is stuck on the left side of my screen
After switching from portrait to landscape mode on my second monitor, my taskbar seems to be stuck on the left side of the...
Read more >
Wrong window position values when program is being closed ...
On my Windows 7 desktop, I have the Windows Taskbar attached at the LEFT side of the screen (instead of default on the...
Read more >
Finding the height of windows taskbar - MATLAB Answers
The height of the taskbar varies according to screen size. ... Note that the other properties of "insets" can be used if the...
Read more >
4 Reasons Why You Should Move Your Windows Taskbar to ...
Windows has puts its taskbar along the bottom of the screen. But I keep mine on the right-hand side. Here's how to move...
Read more >
Task window or main window opens minimized or cannot be ...
... of the screen; Task windows do not show on screen when opened; Visible in the Taskbar; Becomes visible when maximized from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found