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

Tab and ScrollPane visual bug #351

Open
vladim0105 opened this issue Feb 3, 2021 · 3 comments
Open

Tab and ScrollPane visual bug #351

vladim0105 opened this issue Feb 3, 2021 · 3 comments
Labels

Comments

@vladim0105
Copy link

vladim0105 commented Feb 3, 2021

When adding a scrollpane within a tab, the tab pane gets slightly smaller and the tab buttons start leaking.

Example:
buildingsTab.getContentTable().add(buildingsScrollPane).grow();

Will cause the issue:

image

However, it can be fixed by doing this instead:

buildingsTab.getContentTable().add(buildingsScrollPane).prefHeight(1).grow();

Which will fix the issue:

image

Not sure what happens behind the scenes that causes it to be fixed when calling prefHeight(), but it would be nice to not have to do this hack.

@kotcrab kotcrab added the ui label Feb 3, 2021
@kotcrab
Copy link
Owner

kotcrab commented Feb 5, 2021

Please provide complete self contained code to reproduce this.

You might be adding some widgets incorrectly, see here for an example.
Also see docs of ScrollPane.

@vladim0105
Copy link
Author

vladim0105 commented Feb 6, 2021

I unfortunately do not have time to create a self contained code, but I am 99.9% sure that I am adding the widgets correctly. I am doing it in the same way as in the examples.

Note that this bug only happens when having a Tab with a ScrollPane in it, everything else works just fine. So I reckon there is an interaction bug between those two systems.

@kotcrab kotcrab added the bug label Feb 7, 2021
@unenergizer
Copy link

unenergizer commented Feb 20, 2021

I can confirm that I have a similar issue. I’m using version 1.4.3.

Here is a screen shot:
https://i.imgur.com/qJQNixr.png
https://i.imgur.com/mgMb2Bk.png

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

No branches or pull requests

3 participants