question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dimensions for window not working.

See original GitHub issue

Hi. When setting fullscreen, width, or height, it does not render in the window that is opened.

from flask import Flask  
from flask import render_template
from flaskwebgui import FlaskUI

app = Flask(__name__)
ui = FlaskUI(app, fullscreen=True)


@app.route('/')
def hello():  
    return render_template('index.jinja')

if __name__ == '__main__':
    ui.run()

I still get the default dimensions opened. Is this happening to anyone else? Any fix? I am using the latest version. By the way, this library is super useful! Thanks for making this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
hitnikcommented, Nov 14, 2021

I added script to base template:

<script>window.resizeTo(800,600);</script>.

And it works for me.

1reaction
gadhagodcommented, Mar 2, 2021

Hi @ClimenteA. Thanks for your reply. I’ll take a look, but am not an expert, so I don’t know if I can solve the issue. Also, I think it might be a good idea to add a note of this to the README or something, because I spent quite some time debugging before realizing that this was a problem with the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Windows not Remembering Window Positions and ...
If you are still encountering the issue of Windows not remembering window sizes and positions (even for the last closed window), then you...
Read more >
Adobe Dimension - Running but Window not Opening
Hi,. I have most recent verions of Dimension, have been running with no issue. Now it runs without opening. Task manager confirms it's...
Read more >
Windows 11 Does Not Remember Window Position and Size ...
If Windows does not remember the window position and size then ... However, the problem of it not remembering window positions and sizes...
Read more >
What are Standard Window Sizes? - Modernize
Sliding window horizontal widths are available in 36in, 48in, 60in, 72in, and 84 inches. Sliding window heights available are 24in, 36in, 48in, and...
Read more >
Dimensions are going to the center of the window and not the ...
Hello, I have been working on this building and putting in hundreds of window. I have been dimensioning to the sides of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found