Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compatible with Drop down terminal #39

Closed
amankhoza opened this issue Jan 22, 2017 · 9 comments
Closed

Make compatible with Drop down terminal #39

amankhoza opened this issue Jan 22, 2017 · 9 comments

Comments

@amankhoza
Copy link

This extension seems to work well with other panel extensions such as Dynamic top bar, but doesn't seem to work with Drop down terminal. Not sure if the issue lies in Drop down terminal or Dash to panel.

https://extensions.gnome.org/extension/442/drop-down-terminal/

@theneedyguy
Copy link

Is the extension working without Dash-to-Panel installed / activated? It is working for me. Try downloading the Git version of the terminal and move the drop-down-terminal@gs-extensions.zzrough.org folder to ~/.local/share/gnome-shell/extensions.
Here is the git: https://github.com/zzrough/gs-extensions-drop-down-terminal/

@amankhoza
Copy link
Author

Ok so it is working but there is a gap where the the panel should be. If I move the terminal to the bottom then the panel overlaps the terminal. See screenshot: https://www.dropbox.com/s/gizlbewktgu62hw/Screenshot%20from%202017-01-23%2008-20-45.png?dl=0

@theneedyguy
Copy link

I don't know how to fix your problem. I run my panel on top so naturally your problem doesn't occur for me. Might be an issue you need to resolve with the author of the drop-down-terminal.

@jderose9
Copy link
Contributor

I looked briefly at the Drop Down Terminal code and I think it would be best resolved in that extension. I assume Drop Down Terminal would have the same issue with other extensions that set the panel anchor point as I don't think it is currently using it to calculate the terminal position.

That said, I'm not seeing any overlap when using both Dash-To-Panel and Drop Down Terminal from the bottom positions. I do see the gap when the panel is at the bottom and the terminal is in top, left or right positions.

@amankhoza
Copy link
Author

When I put the terminal at the bottom, the bottom of the terminal is cut off by the panel (see screenshot), but I think you're right it would be best resolved in the other extension. I'll contact the dev of the Drop down terminal extension.

https://www.dropbox.com/s/1lzxskwerw0ea8s/Screenshot%20from%202017-01-23%2017-20-30.png?dl=0

@amankhoza
Copy link
Author

I've fixed my issue by making a small tweak in the Drop down terminal code to remove the height of the panel which is added on the top, so all is working well now.

@brandleesee
Copy link

@amankhoza can you please share the code you tweaked for others who may encounter the same problem you had?

@amankhoza
Copy link
Author

Yep sure so for anyone else who encounters this, just edit extension.js for Drop Down Terminal (located in ~/.local/share/gnome-shell/extensions/drop-down-terminal@gs-extensions.zzrough.org/), and change the commented out line to the line below:

case TOP_EDGE:
    this._windowX = x1;
    //this._windowY = panelBox.y == y1 ? y1 + panelBox.height: y1;
    this._windowY = y1; // hack for dash to panel 
    this._windowWidth = screenWidth;
    this._windowHeight = this._evaluateSizeSpec(sizeSpec, true);
    break;

@brandleesee
Copy link

Cheers, @amankhoza!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants