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

GTK Form vertically scaled too large using TableLayout #1791

Closed
ejongejans opened this issue Sep 22, 2020 · 3 comments · Fixed by #1793
Closed

GTK Form vertically scaled too large using TableLayout #1791

ejongejans opened this issue Sep 22, 2020 · 3 comments · Fixed by #1793
Labels
Milestone

Comments

@ejongejans
Copy link

ejongejans commented Sep 22, 2020

Expected Behavior

A window that is maximized around the controls or set to the prefered Size set on the main window.

Actual Behavior

Depending on which tab's I load in the bottom panel it scales vertically outside of the screen (see screenshot)
It's hard to determine what is causing it. It happens in various conditions. I tried removing controls, panels, changing order of adding controls, settings heights. It seems a combination of controls/tabs loaded. I suspect the imageView in two of the tab's but can't reproduce it yet after some hours of investigating.

Currently I load an extra row with Label in the main tableLayout. That shows up as large blank cell in the bottom.
Oddly enough running GTK on our Windows machine doesn't have this problem.

I thought i ask here perhaps somebody knows where to look.

image

Specifications

  • Version: 2.5.6
  • Platform(s): GTK3
  • Operating System(s): Ubuntu 18.04
  • VSCode / .netCore
@ejongejans ejongejans changed the title GTK Form vertically scaled to large using TableLayout GTK Form vertically scaled too large using TableLayout Sep 23, 2020
@cwensley
Copy link
Member

cwensley commented Sep 23, 2020

This looks like the same issue as #1708. I'm not sure exactly why this is happening yet, but setting label.Wrap = WrapMode.None should theoretically fix this issue.

I think why it does this is it determines the size needed as if the width of the label is zero, so the height is based on the number of characters in your label.

@ejongejans
Copy link
Author

Confirmed! This fixes this

@ejongejans
Copy link
Author

Confirmed that this fixes the issue.
Put Label.Wrap = WrapMode.None prevents it.

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

Successfully merging a pull request may close this issue.

2 participants