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

Size of the TabBar is not calculated considering its label sizes + unshrinkable window #1363

Closed
megahomyak opened this issue Jun 17, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@megahomyak
Copy link

megahomyak commented Jun 17, 2022

I wrote the following slint markup: https://gist.github.com/megahomyak/2cec4e7eca97413170ec93e9527a5996
That's how the window looks when spawned:
Very small window

Also, if I add width: parent.width to the LineEdit (in the markup above), I can't shrink the window horizontally after resizing it. The same does not happen when I add the same property to the record-voice-button.

I am using slint v. 0.2.4

@megahomyak megahomyak changed the title Size of the TabBar is not calculated considering its label sizes Size of the TabBar is not calculated considering its label sizes + unshrinkable window Jun 17, 2022
@hunger
Copy link
Member

hunger commented Jun 17, 2022

A tab bar is surprisingly tricky: Tabs are expected to shrink up to a minimum size that basically displays an elision only:-/ Tab bars also are expected to scroll left/right as they can overflow. None of this is supported in slint at this time :-(

On the other hand some tab bars are expected to not shrink below a size where all tabs are readable.

@ogoffart ogoffart added the bug Something isn't working label Jun 17, 2022
@ogoffart
Copy link
Member

The native style's minimum size is working fine. But the fluent style tabbar doesn't seem to have a minimum size. So definitively a bug in the fluent style.

@ogoffart ogoffart self-assigned this Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants