Comments (11)
Hey man! sorry it took so long to comment on this. Do you mean screenSizeYTotal or something that is not just the visible area but the area behind the menu bar as well? And what problems do you have stacking windows? That should work just fine...
from slate.
The problem is, that Y
doesn't take the menubar into account. For example if Y=30
the window is placed 8px below the menubar.
I'm using alias menubarHeight 22
to work around this issue.
from slate.
Interesting. Can you send me a description of how your monitors are placed, where your dock is, which monitor your menu bar is on, etc? I've seen this issue before, but thought I fixed it. Maybe it is a configuration I haven't thought of or seen before. Also, OS version and Slate version would be nice as well.
Thanks!
from slate.
@eipark or @pstadler is this still an issue? If so OS version, Slate version and .slate file would be greatly appreciated.
from slate.
I can confirm that this is still an issue. I had to add a special alias for the menubar just like @pstadler did.
Slate 1.0.5
Mac OS X 10.8.2
.slate
from slate.
My .slate for reference.
from slate.
One thing I've noticed is that neither of you are using screenOriginX
and screenOriginY
. Those will be the proper origin under the menu bar which you can then add to. Maybe that will help?
from slate.
Ok, I was able to get rid of my custom variable by using screenOriginY
(commit diff).
However, it doesn't really solve the problem as the coordinates for placing windows should start from 0/screenOriginY
and not from 0/0
.
Example: move 10;10 ...
should internally be translated to 10;32
Thanks again for this awesome tool! :-)
from slate.
The issue is when you have multiple monitors, 0,0
refers to the main monitor's 0,0
. In order to get to the second monitor you need screenOriginX
and screenOriginY
which is why it should be there for most move operations. I explicitly do not want to auto-append screenOriginY
to coordinates because it doesn't always make sense. screenOriginX
and screenOriginY
are meant to be the "this is the screen's origin" coordinates.
from slate.
What problem are you trying to solve exactly? I feel like there should be a way to do so with the current implementation.
from slate.
To place a window you say what distance it should have from the top-left pixel. Right now this top-left pixel is above the menubar, and not below it (as it should be, because you can't place windows on the menubar).
That's why I have to calculate the position of the windows by adding 22px (= menubar height) to the Y-coordinate manually.
screenOriginY seems to know about the menubar, its value is 22px.
It doesn't matter much to me, you can close this if you want.
from slate.
Related Issues (20)
- Grid screen overlay
- it doesn't respond, macOS Mojave 10.14.2 HOT 2
- How to fix the location of the Dock (i.e. monitor on which cmd + tab switcher is shown) in multi monitor display. HOT 1
- Hangs up for a long time after waking the machine and connecting external monitors HOT 5
- Question about javascript config
- Is there any way to distinguish Lcommand and Rcommand?
- How to know window's MINIMUM width and height?
- Specific website
- Um, how do you use it? HOT 1
- macOS Big Sur 11.1.0.1 (20B29) unresponsive window resizes HOT 5
- Slate not working on Big Sur HOT 13
- Is this project still maintained? HOT 7
- Slate not working on Big Sur HOT 6
- Ignore slate keymaps
- can't download the release package HOT 2
- Download links are not working HOT 2
- Slate stopped working in MacOS Monterey HOT 4
- Ninjamonkeysoftware.com has expired HOT 2
- Animated resizing in Visual Studio Code breaks Slate move HOT 1
- Apple Studio Display issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slate.