Git Product home page Git Product logo

Comments (2)

LewisGaul avatar LewisGaul commented on July 18, 2024

This is kind of horrible to get working properly :)

  • Maximise button should be enabled (easy)
  • Default size should be the tight fit around the board (or with scrollbars if the board is bigger than the max window size)
  • When changing the board size (via dimensions or button size):
    • If the window is maximised it should stay maximised
    • If the window is not maximised and does not have any scrollbars it should be set to the default size
    • If the window is not maximised and has scrollbars it should be set to:
      • the tight fit around the board for dimensions where this is smaller than the current window size
      • unchanged for dimensions where the size is bigger or equal to the current window size
  • Ideally it would not be impossible to increase the window size beyond the tight fit. However, the naive approach prevents maximising the window [on Windows].
    • A less satisfactory alternative would be to reset to the default size when selecting the current difficulty (not including selecting a custom board of the same size), which can be done with a single keyboard button press (e.g. 'b').
  • Persist window state:
    • Whether maximised
    • The dimensions of the window (or displayed size of the minefield?)
  • The name bar should be strictly along the bottom, with padding being around the minefield frame such that the minefield is in the center of the space

from minegauler.

LewisGaul avatar LewisGaul commented on July 18, 2024

Enabled in beta options in PR #125, although buggy and state not persisted.

from minegauler.

Related Issues (20)

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.