Code Monkey home page Code Monkey logo

deskflix's People

Contributors

dependabot[bot] avatar jakereps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mturley

deskflix's Issues

Nicer handling of resizing with respect to screen boundaries

Currently the default behavior of expanding an Electron BrowserWindow is just to expand it outwards from the top left corner (i.e. in the positive x and y direction), but that doesn't play nicely when the screen is nested in any corner other than the top left corner, as growing in that direction pushes it off the screen.

This should be handled using the screen module of Electron. I think the way to do it would just be to force it to stay on the screen by also dynamically manipulating the x, y values on resize.

Another way could be to limit it to only be able to be placed in the corners and expand outwards from them, but that seems a little restrictive.

Bounds contraints:

_ _ _ _
|      ↑|
|      _|
|  ←  |_|
|_______|

Corner pinning:

 _ _ _ _              _ _ _ _
|_|  →   |    and    |  ←  |_|
|_↓______|           |_____↓_|

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.