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

Improve window resizing on Windows #164

Closed
dossalab opened this issue Oct 29, 2018 · 6 comments
Closed

Improve window resizing on Windows #164

dossalab opened this issue Oct 29, 2018 · 6 comments

Comments

@dossalab
Copy link

dossalab commented Oct 29, 2018

20

...Or at least make window border non-resizeable (for example, if root width & height properties set in css)

@lc-soft
Copy link
Owner

lc-soft commented Oct 30, 2018

make window border non-resizeable

You can try to set min size and max size, like this:

root {
  min-width: 900px;
  max-width: 900px;
  min-height: 600px;
  max-height: 600px;
}

@dossalab
Copy link
Author

This seems like a solution, but there are problems:

  1. Cursor still will became double-arrow at the border
  2. Window maximize button will not be disabled
  3. Clicking maximize button will move window to the random location on the screen

@lc-soft
Copy link
Owner

lc-soft commented Oct 31, 2018

What do you think of the following solution?

  1. If min-width == max-width, then disable window width adjustment, and the height is also.
  2. If root widget has maximum size limit, then disable the window maximize button.

@dossalab
Copy link
Author

Completely agree

@lc-soft
Copy link
Owner

lc-soft commented Oct 31, 2018

For the problem in your screenshot, LCUI dose not re-render content when resizing window, I found a solution:

https://www.gamedev.net/forums/topic/651599-rendering-freezing-when-dragresize-window/

@lc-soft
Copy link
Owner

lc-soft commented Oct 31, 2018

Done.

window-resizing

window-button-disabled

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

2 participants